Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 972ffb9

Browse files
committed
Use path2uri in fs
1 parent 9cbae71 commit 972ffb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Span } from 'opentracing';
66
import Semaphore from 'semaphore-async-await';
77
import { URL } from 'whatwg-url';
88
import { InMemoryFileSystem } from './memfs';
9-
import { uri2path } from './util';
9+
import { path2uri, uri2path } from './util';
1010

1111
export interface FileSystem {
1212
/**
@@ -78,7 +78,7 @@ export class LocalFileSystem implements FileSystem {
7878
absolute: true
7979
} as any, (err, matches) => err ? reject(err) : resolve(matches));
8080
});
81-
return iterate(files).map(file => new URL(file, base.href + '/'));
81+
return iterate(files).map(filePath => path2uri(base, filePath));
8282
}
8383

8484
async getTextDocumentContent(uri: URL): Promise<string> {

0 commit comments

Comments
 (0)