Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Apr 25, 2024
1 parent ed008d0 commit a506a5b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@ export class DocumentManager {
if (this.documents.has(textDocument.uri)) {
document = this.documents.get(textDocument.uri)!;
document.setText(textDocument.text);
document.openedByClient = openedByClient;
} else {
document = this.createDocument(textDocument);
this.documents.set(textDocument.uri, document);
document.openedByClient = openedByClient;
this.notify('documentOpen', document);
}

document.openedByClient = openedByClient;
this.notify('documentChange', document);

return document;
Expand Down

0 comments on commit a506a5b

Please sign in to comment.