File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import * as path from "path"
1010import safeCompare from "safe-compare"
1111import * as util from "util"
1212import xdgBasedir from "xdg-basedir"
13+ import { getFirstString } from "../common/util"
1314
1415export interface Paths {
1516 data : string
@@ -457,9 +458,9 @@ enum CharCode {
457458 * Taken from vs/base/common/uri.ts. It's not imported to avoid also importing
458459 * everything that file imports.
459460 */
460- export function pathToFsPath ( path : string , keepDriveLetterCasing = false ) : string {
461+ export function pathToFsPath ( path : string | string [ ] , keepDriveLetterCasing = false ) : string {
461462 const isWindows = process . platform === "win32"
462- const uri = { authority : undefined , path, scheme : "file" }
463+ const uri = { authority : undefined , path : getFirstString ( path ) , scheme : "file" }
463464 let value : string
464465
465466 if ( typeof uri . path !== "string" ) {
You can’t perform that action at this time.
0 commit comments