Change document selector to include the schema explicitly

This commit is contained in:
Erich Gamma 2018-04-18 11:44:34 -07:00
parent 52a75ecf23
commit 0911fb867d
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ export class BowerJSONContribution implements IJSONContribution {
}
public getDocumentSelector(): DocumentSelector {
return [{ language: 'json', pattern: '**/bower.json' }, { language: 'json', pattern: '**/.bower.json' }];
return [{ language: 'json', scheme: '*', pattern: '**/bower.json' }, { language: 'json', scheme: '*', pattern: '**/.bower.json' }];
}
public collectDefaultSuggestions(_resource: string, collector: ISuggestionsCollector): Thenable<any> {

View file

@ -30,7 +30,7 @@ export class PackageJSONContribution implements IJSONContribution {
private knownScopes = ['@types', '@angular'];
public getDocumentSelector(): DocumentSelector {
return [{ language: 'json', pattern: '**/package.json' }];
return [{ language: 'json', scheme: '*', pattern: '**/package.json' }];
}
public constructor(private xhr: XHRRequest) {