mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Avoid assumptions about git: URIs (fixes #36236)
This commit is contained in:
parent
e759447781
commit
c09911add3
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue