VSCode ObjectScript Language extension parsing errors
Hi guys,
Open question for all of you...
We are getting some warnings in our code of a class definition when switching namespaces in the code, because the classes we use in different namespace wouldn't exist in each other's... an example:
ClassMethod DoSomething() { set oldNS=$zutil(5) znspace "SECONDNS" set ok=##class(MyPackage.MyClass).MyMethod() znspace oldNS }
In that example, the vscode "Intersystems Language Server" extension would tag "MyPackage.MyClass" as a problem because that class only exists in the second namespace.
Besides the simple nuisance that this can cause, it can become a problem because might force the developer to start ignoring the problem warnings provided by vscode, and some other important ones could be lost there...
Is this something that can be fixed anyhow? Is there any place we need to report this? Is it possible that a sort of special tag can be place in the code line to tell the parser to ignore the problem such as a ##; /whatever (not ideal but could do as a workaround)?
Thanks a lot in advance