Serhioromano / vscode-st

Extension for VS Code to support Structured Text language.
https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-st#overview
MIT License
141 stars 28 forks source link

Fixes for errors in revamped SymbolProvider #32

Closed msftrncs closed 3 years ago

msftrncs commented 3 years ago

This addresses these issues not previously detected:

  1. Variables definitions marked CONSTANT were not being flagged as such.
  2. Badly formed VAR blocks (or TYPE) could lead to SymbolProvider taking an incredibly long time to return results. This could happen while commenting out sections, or editing led to momentarily open strings.
  3. Comments placed in certain locations within a VAR or TYPE would yield unexpected '' variables in the symbol list.
  4. If a VAR was not closed, and followed by another VAR, VAR would appear as a variable. VAR and TYPE are now mutually exclusive in nesting.

See issue #30.