Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/common/temporaryState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ export class TemporaryState extends vscode.Disposable {
try {
await vscode.workspace.fs.delete(tempState.path, { recursive: true });
} catch (e) {
Logger.appendLine(`Error in initialization: ${e.message}`, TemporaryState.ID);
// Ignore FileNotFound errors - the temp directory may not exist yet on first run.
if (!(e instanceof vscode.FileSystemError) || e.code !== 'FileNotFound') {
Logger.appendLine(`Error in initialization: ${e.message}`, TemporaryState.ID);
}
}
try {
await vscode.workspace.fs.createDirectory(tempState.path);
Expand Down
Loading