Skip to content

Commit 76ae3ff

Browse files
committed
Fix wrong change.
1 parent f95521b commit 76ae3ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/LanguageServer/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ function reportMacCrashes(): void {
952952
// vscode.workspace.createFileSystemWatcher only works in workspace folders.
953953
try {
954954
fs.watch(crashFolder, (event, filename) => {
955-
if (event !== "change") {
955+
if (event !== "rename") {
956956
return;
957957
}
958958
if (!filename || filename === prevMacCrashFile) {
@@ -1012,7 +1012,7 @@ export function watchForCrashes(crashDirectory: string): void {
10121012
// vscode.workspace.createFileSystemWatcher only works in workspace folders.
10131013
try {
10141014
fs.watch(crashDirectory, (event, filename) => {
1015-
if (event !== "rename") {
1015+
if (event !== "change") {
10161016
return;
10171017
}
10181018
if (!filename || filename === prevCppCrashFile) {

0 commit comments

Comments
 (0)