From 70ecd268624508f1947b362bc8903422f4652ff2 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Thu, 11 May 2023 20:58:13 +0200 Subject: [PATCH] readonly - clarify how glob patterns match from settings --- src/vs/workbench/browser/workbench.contribution.ts | 2 +- .../workbench/contrib/files/browser/files.contribution.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vs/workbench/browser/workbench.contribution.ts b/src/vs/workbench/browser/workbench.contribution.ts index c6504043329..d4702ab9d1f 100644 --- a/src/vs/workbench/browser/workbench.contribution.ts +++ b/src/vs/workbench/browser/workbench.contribution.ts @@ -320,7 +320,7 @@ const registry = Registry.as(ConfigurationExtensions.Con 'patternProperties': { '.*': { 'type': 'boolean' } }, - 'markdownDescription': localize('exclude', "Configure [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) for excluding files from the local file history. Changing this setting has no effect on existing local file history entries."), + 'markdownDescription': localize('exclude', "Configure paths or [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) for excluding files from the local file history. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. Changing this setting has no effect on existing local file history entries."), 'scope': ConfigurationScope.RESOURCE }, 'workbench.localHistory.mergeWindow': { diff --git a/src/vs/workbench/contrib/files/browser/files.contribution.ts b/src/vs/workbench/contrib/files/browser/files.contribution.ts index e9228548980..b52df8d1e1e 100644 --- a/src/vs/workbench/contrib/files/browser/files.contribution.ts +++ b/src/vs/workbench/contrib/files/browser/files.contribution.ts @@ -287,7 +287,7 @@ configurationRegistry.registerConfiguration({ '.*': { 'type': 'boolean' } }, 'default': {}, - 'markdownDescription': nls.localize('filesReadonlyInclude', "Configure paths or [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) to mark as read-only. You can exclude matching paths via the `#files.readonlyExclude#` setting. Files from readonly file system providers will always be read-only independent of this setting."), + 'markdownDescription': nls.localize('filesReadonlyInclude', "Configure paths or [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) to mark as read-only. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. You can exclude matching paths via the `#files.readonlyExclude#` setting. Files from readonly file system providers will always be read-only independent of this setting."), 'scope': ConfigurationScope.RESOURCE }, [FILES_READONLY_EXCLUDE_CONFIG]: { @@ -296,7 +296,7 @@ configurationRegistry.registerConfiguration({ '.*': { 'type': 'boolean' } }, 'default': {}, - 'markdownDescription': nls.localize('filesReadonlyExclude', "Configure paths or [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) to exclude from being marked as read-only if they match as a result of the `#files.readonlyInclude#` setting. Files from readonly file system providers will always be read-only independent of this setting."), + 'markdownDescription': nls.localize('filesReadonlyExclude', "Configure paths or [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) to exclude from being marked as read-only if they match as a result of the `#files.readonlyInclude#` setting. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. Files from readonly file system providers will always be read-only independent of this setting."), 'scope': ConfigurationScope.RESOURCE }, [FILES_READONLY_FROM_PERMISSIONS_CONFIG]: { @@ -405,7 +405,7 @@ configurationRegistry.registerConfiguration({ }, 'explorer.autoRevealExclude': { 'type': 'object', - 'markdownDescription': nls.localize('autoRevealExclude', "Configure glob patterns for excluding files and folders from being revealed and selected in the Explorer when they are opened. Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)."), + 'markdownDescription': nls.localize('autoRevealExclude', "Configure paths or [glob patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) for excluding files and folders from being revealed and selected in the Explorer when they are opened. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths."), 'default': { '**/node_modules': true, '**/bower_components': true }, 'additionalProperties': { 'anyOf': [