You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line marked with <<<<<< ERROR results in "Match function signature" being triggered in inspections, however it works perfectly fine under Core's Lua runtime.
Rather than fix this specific quirk (again, I don't know if this is "normal" Lua), it would be great if we had a ---@suppress annotation. Or, to match https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations#diagnostic - ---@diagnostic disable-next-line could be wise. The result being to simply skip all inspections for the next statement.
So ideally I could do just add the new line in SomeOtherScript:
---@typeCosmicLib---@diagnosticdisable-next-linelocalCosmicLib=_G.GetCosmicLib() -- <<<<<< no longer an IDEA inspection triggerCosmicLib:helloWorld()
For now I just set this inspection as "Server Problem" in my IDEA since I use that Severity personally for this purpose (minor tooling issues). But I will have to check this severity manually for legit errors too.
Thank you for your review!
The text was updated successfully, but these errors were encountered:
cosmicdan
changed the title
Feature request: Support for @supress or @diagnostic
Feature request: Support for "@suppress" or "@diagnostic disable"
Jan 31, 2022
cosmicdan
changed the title
Feature request: Support for "@suppress" or "@diagnostic disable"
Feature request: Support for "@suppress" or "@diagnostic disable-next-line"
Jan 31, 2022
Hi,
Not a bug but a feature request.
I am using your great extension for developing scripts in the Core game platform, so apologies if this isn't valid Lua, but it works fine in my case:
CosmicLib.lua
:SomeOtherScript
:The line marked with <<<<<< ERROR results in "Match function signature" being triggered in inspections, however it works perfectly fine under Core's Lua runtime.
Rather than fix this specific quirk (again, I don't know if this is "normal" Lua), it would be great if we had a
---@suppress
annotation. Or, to match https://github.com/sumneko/lua-language-server/wiki/EmmyLua-Annotations#diagnostic ----@diagnostic disable-next-line
could be wise. The result being to simply skip all inspections for the next statement.So ideally I could do just add the new line in
SomeOtherScript
:For now I just set this inspection as "Server Problem" in my IDEA since I use that Severity personally for this purpose (minor tooling issues). But I will have to check this severity manually for legit errors too.
Thank you for your review!
The text was updated successfully, but these errors were encountered: