I really enjoy using the Vscode-objectscript add in but I am having a minor problem.
When I add a not operator,(single quote), in my conditional for an if statement, it seems to mess up the color coding for the rest of the method and class.
Here is where the problem is:
While ('file.AtEnd)
from this example code.
ClassMethod Populate() As %Status
{
Set Status=$$$OK
Do ..%KillExtent()
Set file=##class(%File).%New("/opt/app/sql/GlobalsToWatch.sql")
Do file.Open("RS")
While ('file.AtEnd)
{
Set line=file.ReadLine()
If $Extract(line,1,6)="INSERT"
{
Set Status=$SYSTEM.SQL.Execute(line)
}
}
Do file.Close()
Quit Status
I really enjoy using the Vscode-objectscript add in but I am having a minor problem.
When I add a not operator,(single quote), in my conditional for an if statement, it seems to mess up the color coding for the rest of the method and class.
Here is where the problem is: While ('file.AtEnd)
from this example code.
ClassMethod Populate() As %Status { Set Status=$$$OK Do ..%KillExtent() Set file=##class(%File).%New("/opt/app/sql/GlobalsToWatch.sql") Do file.Open("RS") While ('file.AtEnd) { Set line=file.ReadLine() If $Extract(line,1,6)="INSERT" { Set Status=$SYSTEM.SQL.Execute(line) } } Do file.Close() Quit Status
}
Thanks, Mike