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
This feature uses custom modifiers for `SemanticTokenModifiers` to mark **global** and **local** variables in the `semanticTokens` request.
6
+
7
+
## Change description
8
+
9
+
We extend the `SemanticTokenModifiers` by adding extra modifiers:
10
+
11
+
*`globalVariable`: Marks a **global variable**. This refers to a variable whose **lifetime is the same as the program itself** (program-level visibility and duration). These variables are typically declared in the declarative part of a library-level package:
12
+
***Library-level packages**.
13
+
***Nested packages**, **Protected Objects** or **Tasks** that are themselves declared at the library level. .
14
+
15
+
The variable exists for the entire program execution and is not local to any locally declared subprogram or block.
16
+
17
+
*`localVariable`: Marks a **local variable**. This refers to a variable whose name is declared within the **nearest enclosing declarative part** (e.g., within a subprogram body, a block statement). Their scope and lifetime are typically restricted to that specific program element.
0 commit comments