diff options
author | Sahandevs <[email protected]> | 2021-02-07 17:45:13 +0000 |
---|---|---|
committer | Sahandevs <[email protected]> | 2021-02-07 17:45:13 +0000 |
commit | 06c02021a3d4a4d27d7c58bf54757588a28653cc (patch) | |
tree | 1c3950ceee8a81814d44729d0e333f757ed5d106 /editors/code/src/debug.ts | |
parent | 336909b63a14b801520c6627d90d750babcfe280 (diff) |
remove unnecessary
Diffstat (limited to 'editors/code/src/debug.ts')
-rw-r--r-- | editors/code/src/debug.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts index 925126a16..874b858d9 100644 --- a/editors/code/src/debug.ts +++ b/editors/code/src/debug.ts | |||
@@ -87,11 +87,11 @@ async function getDebugConfiguration(ctx: Ctx, runnable: ra.Runnable): Promise<v | |||
87 | debugOutput.show(true); | 87 | debugOutput.show(true); |
88 | } | 88 | } |
89 | 89 | ||
90 | const isMultiFolderWorkspace = vscode.workspace.workspaceFolders!.length > 1; | 90 | const isMultiFolderWorkspace = vscode.workspace.workspaceFolders.length > 1; |
91 | const firstWorkspace = vscode.workspace.workspaceFolders![0]; // folder exists or RA is not active. | 91 | const firstWorkspace = vscode.workspace.workspaceFolders[0]; // folder exists or RA is not active. |
92 | const workspace = !isMultiFolderWorkspace || !runnable.args.workspaceRoot ? | 92 | const workspace = !isMultiFolderWorkspace || !runnable.args.workspaceRoot ? |
93 | firstWorkspace : | 93 | firstWorkspace : |
94 | vscode.workspace.workspaceFolders!.find(w => runnable.args.workspaceRoot?.includes(w.uri.fsPath)) || firstWorkspace; | 94 | vscode.workspace.workspaceFolders.find(w => runnable.args.workspaceRoot?.includes(w.uri.fsPath)) || firstWorkspace; |
95 | 95 | ||
96 | const wsFolder = path.normalize(workspace.uri.fsPath); | 96 | const wsFolder = path.normalize(workspace.uri.fsPath); |
97 | const workspaceQualifier = isMultiFolderWorkspace ? `:${workspace.name}` : ''; | 97 | const workspaceQualifier = isMultiFolderWorkspace ? `:${workspace.name}` : ''; |