Skip to content

Commit

Permalink
fix(documents): synchronize before willSave
Browse files Browse the repository at this point in the history
Closes #3856
  • Loading branch information
chemzqm committed May 28, 2022
1 parent d455ed9 commit bb448eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ export default class Documents implements Disposable {
}
if (doc.changedtick != changedtick) {
await doc.synchronize()
} else {
await doc.patchChange()
}
let firing = true
let thenables: Thenable<TextEdit[] | any>[] = []
Expand Down

0 comments on commit bb448eb

Please sign in to comment.