提交 0d66fa01 编写于 作者: I isidor

fixes #42159

上级 498ab360
......@@ -19,6 +19,7 @@ import { DiffEditorInput } from 'vs/workbench/common/editor/diffEditorInput';
import { ICodeEditor } from 'vs/editor/browser/editorBrowser';
import { relative } from 'path';
import { IProcessEnvironment, isWindows } from 'vs/base/common/platform';
import { normalizeDriveLetter } from 'vs/base/common/labels';
class VariableResolver {
static VARIABLE_REGEXP = /\$\{(.*?)\}/g;
......@@ -85,9 +86,9 @@ class VariableResolver {
switch (variable) {
case 'workspaceRoot':
case 'workspaceFolder':
return context ? context.uri.fsPath : match;
return context ? normalizeDriveLetter(context.uri.fsPath) : match;
case 'cwd':
return context ? context.uri.fsPath : process.cwd();
return context ? normalizeDriveLetter(context.uri.fsPath) : process.cwd();
case 'workspaceRootFolderName':
case 'workspaceFolderBasename':
return context ? paths.basename(context.uri.fsPath) : match;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册