@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user