use path.normalize for extpath.normalize(.., true)

This commit is contained in:
Martin Aeschlimann
2019-02-15 15:03:30 +01:00
parent ad209fbf7b
commit 92a61b8d16
18 changed files with 46 additions and 51 deletions

View File

@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as extpath from 'vs/base/common/extpath';
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';
@@ -881,7 +881,7 @@ export class ExtHostVariableResolverService extends AbstractVariableResolverServ
if (activeEditor) {
const resource = activeEditor.document.uri;
if (resource.scheme === Schemas.file) {
return extpath.normalize(resource.fsPath, true);
return path.normalize(resource.fsPath);
}
}
return undefined;