Avoid assumptions about git: URIs (fixes #36236)

This commit is contained in:
Christof Marti 2018-08-02 15:09:51 +02:00
parent e759447781
commit c09911add3

View file

@ -263,6 +263,9 @@ export class ExtensionLinter {
}
private async loadPackageJson(folder: Uri) {
if (folder.scheme === 'git') { // #36236
return undefined;
}
const file = folder.with({ path: path.posix.join(folder.path, 'package.json') });
try {
const document = await workspace.openTextDocument(file);