turn on formatting test now working (#2341)

turn on test now working

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-05-10 16:51:54 -07:00
committed by GitHub
parent 726fd02bad
commit 6501072d80
2 changed files with 22 additions and 15 deletions

View File

@ -264,8 +264,12 @@ export class LanguageServerPlugin implements PluginValue {
)
return null
this.sendChange({
documentText: this.view.state.doc.toString(),
this.client.textDocumentDidChange({
textDocument: {
uri: this.documentUri,
version: this.documentVersion++,
},
contentChanges: [{ text: this.view.state.doc.toString() }],
})
const result = await this.client.textDocumentFormatting({