From c268190633bcaea77d215a574c8ca2b5845a253e Mon Sep 17 00:00:00 2001 From: "Sarver, Edwin" Date: Wed, 8 May 2024 14:13:11 -0400 Subject: [PATCH] fix issue with file paths on linux --- src/communicationmanager.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/communicationmanager.ts b/src/communicationmanager.ts index df2dd59..45eb40c 100644 --- a/src/communicationmanager.ts +++ b/src/communicationmanager.ts @@ -1,3 +1,4 @@ +import path = require("node:path") import * as vscode from "vscode" import { EXECUTABLE } from "@tektronix/kic-cli" import { @@ -87,7 +88,10 @@ export class CommunicationManager { */ private async fetchAndUpdateInstrumentTspLinkConfiguration(_e: unknown) { const uriObject = _e as vscode.Uri - const text = `.nodes "${uriObject.fsPath}\\config.tsp.json"` + const text = `.nodes "${path.join( + uriObject.fsPath, + "config.tsp.json" + )}"` await this.handleSendTextToTerminal(text) void vscode.window.showInformationMessage( "Fetching and Updating Instrument tspLink Configuration"