mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Change document selector to include the schema explicitly
This commit is contained in:
parent
52a75ecf23
commit
0911fb867d
|
@ -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> {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue