Skip to content

Commit e5fbbc4

Browse files
committed
Fixes #349
1 parent 796c7b2 commit e5fbbc4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Fix issue [#345](https://github.com/intersystems/language-server/issues/345): Add intellisense for variables passed by reference as method arguments
55
- Fix issue [#347](https://github.com/intersystems/language-server/issues/347): Setting a variable's subscript should not affect the type of that variable
66
- Fix issue [#348](https://github.com/intersystems/language-server/issues/348): Support intellisense for method arguments that don't have a declared type
7+
- Fix issue [#349](https://github.com/intersystems/language-server/issues/349): Automatically provide intellisense for `%sqlcontext` variable
78

89
## [2.6.1] - 2024-08-30
910
- Fix issue [#343](https://github.com/intersystems/language-server/issues/343): foldingRange fails on some C-style block comments

server/src/utils/functions.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,12 @@ async function determineDeclaredLocalVarClass(
15171517
context: "instance"
15181518
};
15191519
}
1520+
else if (thisvar === "%sqlcontext") {
1521+
result = {
1522+
baseclass: "%Library.ProcedureContext",
1523+
context: "instance"
1524+
};
1525+
}
15201526
else {
15211527
// Scan to the top of the method to find the #Dim
15221528
let founddim = false;

0 commit comments

Comments
 (0)