提交 9904d73c 编写于 作者: B Benjamin Pasero

debt - avoid node.js path module

上级 8f9f4542
......@@ -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.');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册