Skip to content

Commit 696b97d

Browse files
committed
Don't sync the document if there have been no changes (such as on file open).
1 parent 07225f1 commit 696b97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/changeForwarding.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ function forwardDocumentChanges(server: OmniSharpServer): IDisposable {
1414

1515
return workspace.onDidChangeTextDocument(event => {
1616

17-
let { document } = event;
18-
if (document.isUntitled || document.languageId !== 'csharp' || document.uri.scheme !== 'file') {
17+
let { document, contentChanges } = event;
18+
if (document.isUntitled || document.languageId !== 'csharp' || document.uri.scheme !== 'file' || contentChanges.length === 0) {
1919
return;
2020
}
2121

0 commit comments

Comments
 (0)