Skip to content

Commit ffeea9d

Browse files
committed
readonly - 💄
1 parent d3d28dd commit ffeea9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/vs/workbench/contrib/files/browser/files.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ configurationRegistry.registerConfiguration({
296296
'.*': { 'type': 'boolean' }
297297
},
298298
'default': {},
299-
'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."),
299+
'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."),
300300
'scope': ConfigurationScope.RESOURCE
301301
},
302302
[FILES_READONLY_FROM_PERMISSIONS_CONFIG]: {

src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export class FilesConfigurationService extends Disposable implements IFilesConfi
9898

9999
private currentHotExitConfig: string;
100100

101-
private readonly readonlyIncludeMatcher = this._register(new IdleValue(() => this.createMatcher(FILES_READONLY_INCLUDE_CONFIG)));
102-
private readonly readonlyExcludeMatcher = this._register(new IdleValue(() => this.createMatcher(FILES_READONLY_EXCLUDE_CONFIG)));
101+
private readonly readonlyIncludeMatcher = this._register(new IdleValue(() => this.createReadonlyMatcher(FILES_READONLY_INCLUDE_CONFIG)));
102+
private readonly readonlyExcludeMatcher = this._register(new IdleValue(() => this.createReadonlyMatcher(FILES_READONLY_EXCLUDE_CONFIG)));
103103
private configuredReadonlyFromPermissions: boolean | undefined;
104104

105105
private readonly sessionReadonlyOverrides = new ResourceMap<boolean>(resource => this.uriIdentityService.extUri.getComparisonKey(resource));
@@ -126,7 +126,7 @@ export class FilesConfigurationService extends Disposable implements IFilesConfi
126126
this.registerListeners();
127127
}
128128

129-
private createMatcher(config: string) {
129+
private createReadonlyMatcher(config: string) {
130130
const matcher = this._register(new ResourceGlobMatcher(
131131
resource => this.configurationService.getValue(config, { resource }),
132132
event => event.affectsConfiguration(config),

0 commit comments

Comments
 (0)