From 190fc50d8e2574bad23e96af27164136029f94dc Mon Sep 17 00:00:00 2001 From: Brett Saviano Date: Tue, 15 Oct 2024 07:23:14 -0400 Subject: [PATCH] Fixes #353 --- CHANGELOG.md | 1 + server/src/providers/completion.ts | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 639e185..58102bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## [2.6.3] - 2024-XX-XX - Fix issue [#352](https://github.com/intersystems/language-server/issues/352): Hide Deprecated classes and class members from completion lists by default +- Fix issue [#353](https://github.com/intersystems/language-server/issues/353): Fix keyword completion for ClassMethods ## [2.6.2] - 2024-10-07 - Fix issue [#345](https://github.com/intersystems/language-server/issues/345): Add intellisense for variables passed by reference as method arguments diff --git a/server/src/providers/completion.ts b/server/src/providers/completion.ts index c6a2d04..b15122c 100644 --- a/server/src/providers/completion.ts +++ b/server/src/providers/completion.ts @@ -670,8 +670,8 @@ export async function onCompletion(params: CompletionParams): Promise= 2) { firsttwotokens = doc.getText(Range.create( - Position.create(params.position.line,parsed[params.position.line][0].p), - Position.create(params.position.line,parsed[params.position.line][1].p+parsed[params.position.line][1].c) + params.position.line,parsed[params.position.line][0].p, + params.position.line,parsed[params.position.line][1].p+parsed[params.position.line][1].c )); } var thistoken: number = -1; @@ -1485,9 +1485,9 @@ export async function onCompletion(params: CompletionParams): Promise