From 8385685cfb7c71d59fe8535a943521eb60097d77 Mon Sep 17 00:00:00 2001 From: Gordon Farquharson Date: Wed, 29 Jan 2025 08:36:48 +0000 Subject: [PATCH] fix: windows workspaces --- src/compiler/index.ts | 2 +- src/extension.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/compiler/index.ts b/src/compiler/index.ts index d74e3bf..f2c050e 100644 --- a/src/compiler/index.ts +++ b/src/compiler/index.ts @@ -33,7 +33,7 @@ async function compileActiveEditorsBinary( ): Promise { const activeFile = debugContext === "workspace" - ? vscode.workspace?.workspaceFolders?.[0].uri.fsPath + "/" + ? vscode.workspace?.workspaceFolders?.[0].uri.fsPath + path.sep : vscode.window.activeTextEditor?.document.uri.fsPath; const activeFileLanguage = getActiveFileLanguage(); diff --git a/src/extension.ts b/src/extension.ts index 9a01be4..9f7326c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -40,9 +40,6 @@ export function activate(context: vscode.ExtensionContext) { const activeEditor = vscode.window.activeTextEditor; if (activeEditor) { const activeEditor = vscode.window.activeTextEditor; - vscode.window.showInformationMessage( - `activeEditor: ${activeEditor?.document.uri.fsPath}` - ); vscode.window.showInformationMessage("FastEdge: Running File"); vscode.debug.startDebugging(undefined, { ...getLaunchConfigurations(activeEditor?.document.uri),