Skip to content

Commit 622b3d6

Browse files
author
Benjamin Pasero
committed
paths - paths.node.ts => path.ts
1 parent b0acf49 commit 622b3d6

156 files changed

Lines changed: 161 additions & 159 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/vs/base/common/comparers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as strings from 'vs/base/common/strings';
7-
import { sep } from 'vs/base/common/paths.node';
7+
import { sep } from 'vs/base/common/path';
88
import { IdleValue } from 'vs/base/common/async';
99

1010
let intlFileNameCollator: IdleValue<{ collator: Intl.Collator, collatorIsNumeric: boolean }>;

src/vs/base/common/extpath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { isWindows } from 'vs/base/common/platform';
77
import { startsWithIgnoreCase, equalsIgnoreCase } from 'vs/base/common/strings';
88
import { CharCode } from 'vs/base/common/charCode';
9-
import { sep, posix } from 'vs/base/common/paths.node';
9+
import { sep, posix } from 'vs/base/common/path';
1010

1111
function isPathSeparator(code: number) {
1212
return code === CharCode.Slash || code === CharCode.Backslash;

src/vs/base/common/glob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import * as arrays from 'vs/base/common/arrays';
77
import * as strings from 'vs/base/common/strings';
88
import * as extpath from 'vs/base/common/extpath';
9-
import * as paths from 'vs/base/common/paths.node';
9+
import * as paths from 'vs/base/common/path';
1010
import { LRUCache } from 'vs/base/common/map';
1111
import { CharCode } from 'vs/base/common/charCode';
1212
import { isThenable } from 'vs/base/common/async';

src/vs/base/common/labels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import { URI } from 'vs/base/common/uri';
77
import { normalize } from 'vs/base/common/extpath';
8-
import { sep, posix } from 'vs/base/common/paths.node';
8+
import { sep, posix } from 'vs/base/common/path';
99
import { endsWith, ltrim, startsWithIgnoreCase, rtrim, startsWith } from 'vs/base/common/strings';
1010
import { Schemas } from 'vs/base/common/network';
1111
import { isLinux, isWindows, isMacintosh } from 'vs/base/common/platform';

src/vs/base/common/mime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { basename, posix, extname } from 'vs/base/common/paths.node';
6+
import { basename, posix, extname } from 'vs/base/common/path';
77
import { endsWith, startsWithUTF8BOM, startsWith } from 'vs/base/common/strings';
88
import { coalesce } from 'vs/base/common/arrays';
99
import { match } from 'vs/base/common/glob';
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
// extracted from nodejs commit 'https://github.com/nodejs/node/tree/43dd49c9782848c25e5b03448c8a0f923f13c158'
6+
// NOTE: VSCode's copy of nodejs path library to be usable in common (non-node) namespace
7+
// Copied from: https://github.com/nodejs/node/tree/43dd49c9782848c25e5b03448c8a0f923f13c158
78

89
// Copyright Joyent, Inc. and other Node contributors.
910
//

src/vs/base/common/resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as extpath from 'vs/base/common/extpath';
7-
import * as paths from 'vs/base/common/paths.node';
7+
import * as paths from 'vs/base/common/path';
88
import { URI } from 'vs/base/common/uri';
99
import { equalsIgnoreCase } from 'vs/base/common/strings';
1010
import { Schemas } from 'vs/base/common/network';

src/vs/base/node/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as fs from 'fs';
7-
import { dirname, basename } from 'vs/base/common/paths.node';
7+
import { dirname, basename } from 'vs/base/common/path';
88
import * as objects from 'vs/base/common/objects';
99
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
1010
import { Event, Emitter } from 'vs/base/common/event';

src/vs/base/node/extfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as fs from 'fs';
7-
import * as paths from 'vs/base/common/paths.node';
7+
import * as paths from 'vs/base/common/path';
88
import { nfcall } from 'vs/base/common/async';
99
import { normalizeNFC } from 'vs/base/common/normalization';
1010
import * as platform from 'vs/base/common/platform';

src/vs/base/node/pfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as extfs from 'vs/base/node/extfs';
7-
import { join } from 'vs/base/common/paths.node';
7+
import { join } from 'vs/base/common/path';
88
import { nfcall, Queue } from 'vs/base/common/async';
99
import * as fs from 'fs';
1010
import * as os from 'os';

0 commit comments

Comments
 (0)