Skip to content

Commit 076a436

Browse files
authored
fix: don't show help when hover on white space (#1279)
Signed-off-by: Wei Wu <wei.wu@sas.com>
1 parent b48e2a1 commit 076a436

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/sas/CompletionProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ export class CompletionProvider {
298298
position.character,
299299
);
300300
return new Promise((resolve) => {
301+
if (keyword.trim() === "") {
302+
resolve(undefined);
303+
return;
304+
}
301305
this._loadHelp({
302306
keyword: keyword,
303307
type: "hint",

0 commit comments

Comments
 (0)