diff options
Diffstat (limited to 'editors/code/src/utils')
-rw-r--r-- | editors/code/src/utils/diagnostics/rust.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/utils/diagnostics/rust.ts b/editors/code/src/utils/diagnostics/rust.ts index bfb494a3a..1fb1f7b6d 100644 --- a/editors/code/src/utils/diagnostics/rust.ts +++ b/editors/code/src/utils/diagnostics/rust.ts | |||
@@ -64,7 +64,7 @@ function mapLevelToSeverity(s: string): vscode.DiagnosticSeverity { | |||
64 | * Converts a Rust span to a VsCode location | 64 | * Converts a Rust span to a VsCode location |
65 | */ | 65 | */ |
66 | function mapSpanToLocation(span: RustDiagnosticSpan): vscode.Location { | 66 | function mapSpanToLocation(span: RustDiagnosticSpan): vscode.Location { |
67 | const fileName = path.join(vscode.workspace.rootPath!, span.file_name); | 67 | const fileName = path.join(vscode.workspace.rootPath || '', span.file_name); |
68 | const fileUri = vscode.Uri.file(fileName); | 68 | const fileUri = vscode.Uri.file(fileName); |
69 | 69 | ||
70 | const range = new vscode.Range( | 70 | const range = new vscode.Range( |