Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-04-15 17:24:29 -07:00
parent 28cd330fc2
commit e86c628118

View File

@ -43,7 +43,6 @@ const CompletionItemKindMap = Object.fromEntries(
Object.entries(CompletionItemKind).map(([key, value]) => [value, key]) Object.entries(CompletionItemKind).map(([key, value]) => [value, key])
) as Record<CompletionItemKind, string> ) as Record<CompletionItemKind, string>
export class LanguageServerPlugin implements PluginValue { export class LanguageServerPlugin implements PluginValue {
public client: LanguageServerClient public client: LanguageServerClient
public documentUri: string public documentUri: string
@ -121,13 +120,13 @@ export class LanguageServerPlugin implements PluginValue {
} }
try { try {
this.client.textDocumentDidChange({ this.client.textDocumentDidChange({
textDocument: { textDocument: {
uri: this.documentUri, uri: this.documentUri,
version: this.documentVersion++, version: this.documentVersion++,
}, },
contentChanges: [{ text: documentText }], contentChanges: [{ text: documentText }],
}) })
} catch (e) { } catch (e) {
console.error(e) console.error(e)
} }