We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4947e69 commit 98a3abcCopy full SHA for 98a3abc
1 file changed
src/common/temporaryState.ts
@@ -110,7 +110,10 @@ export class TemporaryState extends vscode.Disposable {
110
try {
111
await vscode.workspace.fs.delete(tempState.path, { recursive: true });
112
} catch (e) {
113
- Logger.appendLine(`Error in initialization: ${e.message}`, TemporaryState.ID);
+ // Ignore FileNotFound errors - the temp directory may not exist yet on first run.
114
+ if (!(e instanceof vscode.FileSystemError) || e.code !== 'FileNotFound') {
115
+ Logger.appendLine(`Error in initialization: ${e.message}`, TemporaryState.ID);
116
+ }
117
}
118
119
await vscode.workspace.fs.createDirectory(tempState.path);
0 commit comments