We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 106a78a commit 9cf0292Copy full SHA for 9cf0292
server/src/sas/CompletionProvider.ts
@@ -866,10 +866,12 @@ export class CompletionProvider {
866
if (stmtName === "SET") {
867
const pos = this.popupContext.position;
868
const lineText = this.model.getLine(pos.line);
869
- const firstOptForSET =
870
- lineText
871
- .slice(lineText.toUpperCase().indexOf("SET") + 3, pos.character)
872
- .search(/\S/) === -1;
+ const firstOptForSET = /^\s+\S*$/.test(
+ lineText.slice(
+ lineText.toUpperCase().indexOf("SET") + 3,
+ pos.character,
873
+ ),
874
+ );
875
const libref = this._findLibRef();
876
if (firstOptForSET || libref) {
877
this.loader.getLibraryList((data: OptionValues) => {
0 commit comments