Skip to content

Commit

Permalink
fixed a bug of completion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Feb 12, 2021
1 parent 023514b commit 76f21c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,8 @@ class KinxLanguageServer {
kind: CompletionItemKind.Keyword,
data: ++index,
}));
candidates.concat(this.symbols_[uri].map((el: any) => ({
var tokenx = this.utils_.getPreviousToken(srcline, position.character).toLowerCase();
candidates = candidates.concat(this.symbols_[uri].filter((el: any) => el.name.toLowerCase() !== tokenx).map((el: any) => ({
label: el.name,
kind: el.kind,
data: ++index,
Expand Down

0 comments on commit 76f21c9

Please sign in to comment.