Skip to content

Commit

Permalink
fix: every character trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro757 committed Dec 7, 2021
1 parent 43ea569 commit a46396b
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,65 @@ import {
let connection = createConnection(ProposedFeatures.all);
let documents: TextDocuments<TextDocument> = new TextDocuments(TextDocument);

const triggerCharacters = [
">",
")",
"]",
"}",

"@",
"*",
"$",
"+",

// alpha
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
"y",
"z",

// num
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
];

connection.onInitialize(function () {
const result: InitializeResult = {
capabilities: {
textDocumentSync: TextDocumentSyncKind.Incremental,
completionProvider: {
resolveProvider: true,
triggerCharacters: triggerCharacters,
},
},
};
Expand Down

0 comments on commit a46396b

Please sign in to comment.