Skip to content

Commit

Permalink
fix issue with file paths on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
esarver committed May 8, 2024
1 parent 91bde8e commit c268190
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/communicationmanager.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path = require("node:path")
import * as vscode from "vscode"
import { EXECUTABLE } from "@tektronix/kic-cli"
import {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c268190

Please sign in to comment.