From b2e2e78c8819dfbf3c181a0f0591ff62caa15cca Mon Sep 17 00:00:00 2001 From: Andre Weinand Date: Thu, 21 Nov 2019 13:16:14 +0100 Subject: [PATCH] make '${file}' equivalent to TextDocument.fileName --- src/vs/workbench/api/common/extHostDebugService.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/vs/workbench/api/common/extHostDebugService.ts b/src/vs/workbench/api/common/extHostDebugService.ts index 6c1802ec3e4..75bc3851448 100644 --- a/src/vs/workbench/api/common/extHostDebugService.ts +++ b/src/vs/workbench/api/common/extHostDebugService.ts @@ -3,9 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ - import * as path from 'vs/base/common/path'; -import { Schemas } from 'vs/base/common/network'; import { URI, UriComponents } from 'vs/base/common/uri'; import { Event, Emitter } from 'vs/base/common/event'; import { asPromise } from 'vs/base/common/async'; @@ -982,10 +980,7 @@ export class ExtHostVariableResolverService extends AbstractVariableResolverServ getFilePath: (): string | undefined => { const activeEditor = editorService.activeEditor(); if (activeEditor) { - const resource = activeEditor.document.uri; - if (resource.scheme === Schemas.file) { - return path.normalize(resource.fsPath); - } + return path.normalize(activeEditor.document.uri.fsPath); } return undefined; },