From 1d5d08e5026881fe512b391363814d3ab21a2119 Mon Sep 17 00:00:00 2001 From: Garrett Campbell Date: Fri, 6 Dec 2024 14:46:38 -0500 Subject: [PATCH] add slight protections --- src/extension.ts | 11 +++++++---- src/languageServices/languageServiceData.ts | 2 -- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 2b26e6687..ef9cd596f 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -50,7 +50,6 @@ import { DebuggerInformation, getDebuggerPipeName } from '@cmt/debug/cmakeDebugg import { DebugConfigurationProvider, DynamicDebugConfigurationProvider } from '@cmt/debug/cmakeDebugger/debugConfigurationProvider'; import { deIntegrateTestExplorer } from "@cmt/ctest"; import { LanguageServiceData } from './languageServices/languageServiceData'; -import { file } from 'tmp'; nls.config({ messageFormat: nls.MessageFormat.bundle, bundleFormat: nls.BundleFormat.standalone })(); const localize: nls.LocalizeFunc = nls.loadMessageBundle(); @@ -2365,9 +2364,13 @@ export async function activate(context: vscode.ExtensionContext): Promise { - const test = thisExtensionPath(); - console.log(test); const locale: string = util.getLocaleId(); this.commands = JSON.parse(await this.getFile("commands.json", locale)); this.variables = JSON.parse(await this.getFile("variables.json", locale));