Skip to content

Commit 98c6904

Browse files
Ensure that we listen for file changes
It's entirely possible for files to change without being opened and edited by VS Code. We need to watch for such changes.
1 parent b813aed commit 98c6904

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/features/changeForwarding.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ function forwardFileChanges(server: OmniSharpServer): Disposable {
5151
const watcher = workspace.createFileSystemWatcher('**/*.*');
5252
let d1 = watcher.onDidCreate(onFileSystemEvent(FileChangeType.Create));
5353
let d2 = watcher.onDidDelete(onFileSystemEvent(FileChangeType.Delete));
54+
let d3 = watcher.onDidChange(onFileSystemEvent(FileChangeType.Change));
5455

55-
// In theory we don't need to subscribe to "change" notifications
56-
// because we already get them through the buffer update request
57-
58-
return Disposable.from(watcher, d1, d2);
56+
return Disposable.from(watcher, d1, d2, d3);
5957
}
6058

6159
export default function forwardChanges(server: OmniSharpServer): Disposable {

0 commit comments

Comments
 (0)