Skip to content

Commit 0911fb8

Browse files
committed
Change document selector to include the schema explicitly
1 parent 52a75ec commit 0911fb8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/npm/src/features/bowerJSONContribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class BowerJSONContribution implements IJSONContribution {
2929
}
3030

3131
public getDocumentSelector(): DocumentSelector {
32-
return [{ language: 'json', pattern: '**/bower.json' }, { language: 'json', pattern: '**/.bower.json' }];
32+
return [{ language: 'json', scheme: '*', pattern: '**/bower.json' }, { language: 'json', scheme: '*', pattern: '**/.bower.json' }];
3333
}
3434

3535
public collectDefaultSuggestions(_resource: string, collector: ISuggestionsCollector): Thenable<any> {

extensions/npm/src/features/packageJSONContribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class PackageJSONContribution implements IJSONContribution {
3030
private knownScopes = ['@types', '@angular'];
3131

3232
public getDocumentSelector(): DocumentSelector {
33-
return [{ language: 'json', pattern: '**/package.json' }];
33+
return [{ language: 'json', scheme: '*', pattern: '**/package.json' }];
3434
}
3535

3636
public constructor(private xhr: XHRRequest) {

0 commit comments

Comments
 (0)