File tree 1 file changed +3
-2
lines changed
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"
10
10
import safeCompare from "safe-compare"
11
11
import * as util from "util"
12
12
import xdgBasedir from "xdg-basedir"
13
+ import { getFirstString } from "../common/util"
13
14
14
15
export interface Paths {
15
16
data : string
@@ -457,9 +458,9 @@ enum CharCode {
457
458
* Taken from vs/base/common/uri.ts. It's not imported to avoid also importing
458
459
* everything that file imports.
459
460
*/
460
- export function pathToFsPath ( path : string , keepDriveLetterCasing = false ) : string {
461
+ export function pathToFsPath ( path : string | string [ ] , keepDriveLetterCasing = false ) : string {
461
462
const isWindows = process . platform === "win32"
462
- const uri = { authority : undefined , path, scheme : "file" }
463
+ const uri = { authority : undefined , path : getFirstString ( path ) , scheme : "file" }
463
464
let value : string
464
465
465
466
if ( typeof uri . path !== "string" ) {
You can’t perform that action at this time.
0 commit comments