From 9904d73c82cc8c3748c516c8fd2f041d6b262775 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Wed, 16 Sep 2020 13:39:47 +0200 Subject: [PATCH] debt - avoid node.js path module --- .../electron-browser/configurationResolverService.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/services/configurationResolver/test/electron-browser/configurationResolverService.test.ts b/src/vs/workbench/services/configurationResolver/test/electron-browser/configurationResolverService.test.ts index 53d047f643f..434c87b5da6 100644 --- a/src/vs/workbench/services/configurationResolver/test/electron-browser/configurationResolverService.test.ts +++ b/src/vs/workbench/services/configurationResolver/test/electron-browser/configurationResolverService.test.ts @@ -4,7 +4,7 @@ *--------------------------------------------------------------------------------------------*/ import * as assert from 'assert'; -import * as path from 'path'; +import { normalize } from 'vs/base/common/path'; import { Emitter, Event } from 'vs/base/common/event'; import { URI as uri } from 'vs/base/common/uri'; import * as platform from 'vs/base/common/platform'; @@ -655,7 +655,7 @@ class MockQuickInputService implements IQuickInputService { class MockLabelService implements ILabelService { _serviceBrand: undefined; getUriLabel(resource: uri, options?: { relative?: boolean | undefined; noPrefix?: boolean | undefined; endWithSeparator?: boolean | undefined; }): string { - return path.normalize(resource.fsPath); + return normalize(resource.fsPath); } getUriBasenameLabel(resource: uri): string { throw new Error('Method not implemented.'); -- GitLab