From b761d76ebb397c5a4cb731655728a24df5391a32 Mon Sep 17 00:00:00 2001 From: Hampus Adolfsson Date: Tue, 7 Nov 2023 10:11:36 +0100 Subject: [PATCH] VSC-429 Keep generated argvar files for intellisense Closes #63 --- src/extension/intellisense/intellisenseservice.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/extension/intellisense/intellisenseservice.ts b/src/extension/intellisense/intellisenseservice.ts index 26672b4..27f51af 100644 --- a/src/extension/intellisense/intellisenseservice.ts +++ b/src/extension/intellisense/intellisenseservice.ts @@ -5,7 +5,6 @@ import { logger } from "iar-vsc-common/logger"; import * as Vscode from "vscode"; import * as Path from "path"; -import * as Fs from "fs/promises"; import { ExtensionState } from "../extensionstate"; import { ExtensionSettings } from "../settings/extensionsettings"; import { WorkspaceIntellisenseProvider } from "./workspaceintellisenseprovider"; @@ -168,11 +167,6 @@ export class IntellisenseInfoService { generatedArgvarsFile ?? regularArgvarsFile, workspaceFolder, this.output); - loadPromise.finally(() => { - if (generatedArgvarsFile) { - Fs.unlink(generatedArgvarsFile).catch(() => {/**/}); - } - }); return loadPromise.then(intellisenseInfo => { this.workspaceIntellisenseInfo = intellisenseInfo;