Skip to content

Commit

Permalink
fix: #132 optimize provideCompletionItems insertTextRules (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 authored Jun 19, 2024
1 parent 4dd55a5 commit 802f4cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/languageFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,7 @@ export class CompletionAdapter<T extends BaseSQLWorker>
insertText:
item.insertText ??
(typeof item.label === 'string' ? item.label : item.label.label),
range: item.range ?? wordRange,
insertTextRules:
item.insertTextRules ??
languages.CompletionItemInsertTextRule.InsertAsSnippet
range: item.range ?? wordRange
})
);

Expand Down

0 comments on commit 802f4cd

Please sign in to comment.