Skip to content

Commit

Permalink
Adopt requireTrust for my configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Apr 15, 2021
1 parent e870a6d commit 25785b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ configurationRegistry.registerConfiguration({
properties: {
[SEARCH_EXCLUDE_CONFIG]: {
type: 'object',
requireTrust: true, // This will be passed to various CLI processes, better safe than sorry.
markdownDescription: nls.localize('exclude', "Configure glob patterns for excluding files and folders in fulltext searches and quick open. Inherits all glob patterns from the `#files.exclude#` setting. Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)."),
default: { '**/node_modules': true, '**/bower_components': true, '**/*.code-search': true },
additionalProperties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegis
import { KeyCode } from 'vs/base/common/keyCodes';
import { EditorDescriptor, IEditorRegistry, Extensions as EditorExtensions } from 'vs/workbench/browser/editor';
import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors';
import { IConfigurationRegistry, Extensions as ConfigurationExtensions, ConfigurationScope } from 'vs/platform/configuration/common/configurationRegistry';
import { workbenchConfigurationNodeBase } from 'vs/workbench/common/configuration';
import { IGettingStartedService } from 'vs/workbench/contrib/welcome/gettingStarted/browser/gettingStartedService';
import { GettingStartedInput } from 'vs/workbench/contrib/welcome/gettingStarted/browser/gettingStartedInput';

Expand Down Expand Up @@ -166,20 +164,6 @@ registerAction2(class extends Action2 {
}
});

Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
.registerConfiguration({
...workbenchConfigurationNodeBase,
'properties': {
'workbench.welcomePage.hiddenCategories': {
'scope': ConfigurationScope.APPLICATION,
'type': 'array',
'items': { type: 'string' },
'default': [],
'description': localize('welcomePage.hiddenCategories', "Hide categories of the welcome page's getting started section that are not relevant to you.")
},
}
});

ExtensionsRegistry.registerExtensionPoint({
extensionPoint: 'walkthroughs',
jsonSchema: {
Expand Down

0 comments on commit 25785b9

Please sign in to comment.