Skip to content

Commit

Permalink
Fixes #349
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano committed Oct 2, 2024
1 parent 796c7b2 commit e5fbbc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Fix issue [#345](https://github.com/intersystems/language-server/issues/345): Add intellisense for variables passed by reference as method arguments
- Fix issue [#347](https://github.com/intersystems/language-server/issues/347): Setting a variable's subscript should not affect the type of that variable
- Fix issue [#348](https://github.com/intersystems/language-server/issues/348): Support intellisense for method arguments that don't have a declared type
- Fix issue [#349](https://github.com/intersystems/language-server/issues/349): Automatically provide intellisense for `%sqlcontext` variable

## [2.6.1] - 2024-08-30
- Fix issue [#343](https://github.com/intersystems/language-server/issues/343): foldingRange fails on some C-style block comments
Expand Down
6 changes: 6 additions & 0 deletions server/src/utils/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,12 @@ async function determineDeclaredLocalVarClass(
context: "instance"
};
}
else if (thisvar === "%sqlcontext") {
result = {
baseclass: "%Library.ProcedureContext",
context: "instance"
};
}
else {
// Scan to the top of the method to find the #Dim
let founddim = false;
Expand Down

0 comments on commit e5fbbc4

Please sign in to comment.