Skip to content

Commit

Permalink
feat: add completion.ignoreTriggerCharacters to init options
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Sep 4, 2022
1 parent 7489f73 commit 13a1100
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -69,6 +69,10 @@ export function register(
])],
resolveProvider: true,
};
if (features.completion.ignoreTriggerCharacters) {
server.completionProvider.triggerCharacters = server.completionProvider.triggerCharacters
?.filter(c => !features.completion!.ignoreTriggerCharacters?.includes(c));
}
server.executeCommandProvider = {
commands: [
...(server.executeCommandProvider?.commands ?? []),
Expand Down
2 changes: 2 additions & 0 deletions packages/vue-language-server/src/types.ts
Expand Up @@ -88,6 +88,8 @@ export interface ServerInitializationOptions {
* {@link __requests.GetDocumentSelectionRequest}
* */
getDocumentSelectionRequest?: boolean,
// for resolve https://github.com/sublimelsp/LSP-volar/issues/114
ignoreTriggerCharacters?: string,
};
documentHighlight?: boolean;
documentLink?: boolean;
Expand Down

0 comments on commit 13a1100

Please sign in to comment.