Skip to content

Commit

Permalink
Revert "What should happen when on a read-only filesystem? (fix #148304
Browse files Browse the repository at this point in the history
…)"

This reverts commit 0cb3913.
  • Loading branch information
bpasero authored and aeschli committed May 2, 2022
1 parent 30c6adb commit f8b9cac
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/vs/workbench/browser/parts/editor/editorPanes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,12 @@ export class EditorPanes extends Disposable {
if (result.choice !== cancelId && errorActions) {
const errorAction = errorActions[result.choice];
if (errorAction) {
try {
await errorAction.run();

errorHandled = true; // consider the error as handled
} catch (error) {
this.dialogService.show(Severity.Error, toErrorMessage(error));
const result = errorAction.run();
if (result instanceof Promise) {
result.catch(error => this.dialogService.show(Severity.Error, toErrorMessage(error)));
}

errorHandled = true; // consider the error as handled!
}
}
}
Expand Down

0 comments on commit f8b9cac

Please sign in to comment.