Skip to content

Commit

Permalink
fixing issue TSP-598
Browse files Browse the repository at this point in the history
  • Loading branch information
jharajeev55 committed Jul 17, 2024
1 parent 6b51f10 commit e07ac3b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/communicationmanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ export class CommunicationManager {
// Sends script to terminal
private async sendScript(_e: unknown) {
const uriObject = _e as vscode.Uri
const filePath = '"' + uriObject.fsPath + '"'
const text = ".script " + filePath
await this.handleSendTextToTerminal(text).then(() => {
const filePath = `.script "${uriObject.fsPath}"`
await this.handleSendTextToTerminal(filePath).then(() => {
void vscode.window.showInformationMessage(
"Sending script to terminal"
)
Expand All @@ -70,7 +69,7 @@ export class CommunicationManager {
*/
private sendScriptToAllInstruments(_e: unknown) {
const uriObject = _e as vscode.Uri
const filePath = `.script ${uriObject.fsPath}`
const filePath = `.script "${uriObject.fsPath}"`
const kicTerminals = vscode.window.terminals.filter((t) => {
const to = t.creationOptions as vscode.TerminalOptions
return to?.shellPath?.toString() === EXECUTABLE
Expand Down

0 comments on commit e07ac3b

Please sign in to comment.