Skip to content

Commit f2d333a

Browse files
fix: 🐛 Path Error With Visualizer
1 parent 50da8a8 commit f2d333a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/commands.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ function get_filename() {
99
if (vscode.window.activeTextEditor?.document.uri.path.includes(pattern)) {
1010
vscode.window.showErrorMessage('Error: path to file cannot contain sequence: ' + pattern)
1111
return 'Error: Pattern'
12+
} else if (vscode.window.activeTextEditor?.document.uri.path.includes(' ')) {
13+
vscode.window.showErrorMessage('Error: path to file cannot contain spaces')
14+
return 'Error: Pattern'
1215
} else {
1316
return vscode.window.activeTextEditor?.document.uri.path.split(path.sep).join(pattern)
1417
}

src/dashmips.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { EventEmitter } from 'events'
44
import { logger } from 'vscode-debugadapter'
55
import { DebugProtocol } from 'vscode-debugprotocol'
66
import { Subject } from './subject'
7-
import * as vscode from 'vscode'
87

98
export interface DashmipsDebugClient {
109
on(event: 'start', listener: (pid: { pid: number }) => void): this

0 commit comments

Comments
 (0)