mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 13:43:07 +00:00
Classify vscode.search-result
as a Feature extension
This commit is contained in:
parent
df57a6157c
commit
f5bfef2543
1 changed files with 5 additions and 2 deletions
|
@ -49,6 +49,9 @@ import { SeverityIcon } from 'vs/platform/severityIcon/common/severityIcon';
|
|||
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { SIDE_BAR_BACKGROUND } from 'vs/workbench/common/theme';
|
||||
|
||||
// Extensions that are automatically classified as Programming Language extensions, but should be Feature extensions
|
||||
const FORCE_FEATURE_EXTENSIONS = ['vscode.git', 'vscode.search-result'];
|
||||
|
||||
class ExtensionsViewState extends Disposable implements IExtensionsViewState {
|
||||
|
||||
private readonly _onFocus: Emitter<IExtension> = this._register(new Emitter<IExtension>());
|
||||
|
@ -311,7 +314,7 @@ export class ExtensionsListView extends ViewPane {
|
|||
&& e.local.manifest.contributes
|
||||
&& Array.isArray(e.local.manifest.contributes.grammars)
|
||||
&& e.local.manifest.contributes.grammars.length
|
||||
&& e.local.identifier.id !== 'vscode.git';
|
||||
&& FORCE_FEATURE_EXTENSIONS.indexOf(e.local.identifier.id) === -1;
|
||||
});
|
||||
return this.getPagedModel(this.sortExtensions(basics, options));
|
||||
}
|
||||
|
@ -320,7 +323,7 @@ export class ExtensionsListView extends ViewPane {
|
|||
return e.local
|
||||
&& e.local.manifest
|
||||
&& e.local.manifest.contributes
|
||||
&& (!Array.isArray(e.local.manifest.contributes.grammars) || e.local.identifier.id === 'vscode.git')
|
||||
&& (!Array.isArray(e.local.manifest.contributes.grammars) || FORCE_FEATURE_EXTENSIONS.indexOf(e.local.identifier.id) !== -1)
|
||||
&& !Array.isArray(e.local.manifest.contributes.themes);
|
||||
});
|
||||
return this.getPagedModel(this.sortExtensions(others, options));
|
||||
|
|
Loading…
Reference in a new issue