@codingame/monaco-vscode-configuration-service-override 5.3.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +11 -10
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +9 -9
- package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js +8 -6
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +16 -15
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +87 -80
- package/vscode/src/vs/workbench/services/configuration/common/configurationCache.js +2 -1
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +96 -70
- package/vscode/src/vs/workbench/services/label/common/labelService.js +16 -12
- package/vscode/src/vs/workbench/services/textresourceProperties/common/textResourcePropertiesService.js +6 -4
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +13 -11
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +11 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-configuration-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@6.0.1",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "6.0.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -4,6 +4,7 @@ import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
|
4
4
|
import { Position } from 'vscode/vscode/vs/editor/common/core/position';
|
|
5
5
|
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
6
6
|
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
7
|
+
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
7
8
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
9
|
|
|
9
10
|
let TextResourceConfigurationService = class TextResourceConfigurationService extends Disposable {
|
|
@@ -34,34 +35,34 @@ let TextResourceConfigurationService = class TextResourceConfigurationService ex
|
|
|
34
35
|
deriveConfigurationTarget(configurationValue, language) {
|
|
35
36
|
if (language) {
|
|
36
37
|
if (configurationValue.memory?.override !== undefined) {
|
|
37
|
-
return
|
|
38
|
+
return ConfigurationTarget.MEMORY;
|
|
38
39
|
}
|
|
39
40
|
if (configurationValue.workspaceFolder?.override !== undefined) {
|
|
40
|
-
return
|
|
41
|
+
return ConfigurationTarget.WORKSPACE_FOLDER;
|
|
41
42
|
}
|
|
42
43
|
if (configurationValue.workspace?.override !== undefined) {
|
|
43
|
-
return
|
|
44
|
+
return ConfigurationTarget.WORKSPACE;
|
|
44
45
|
}
|
|
45
46
|
if (configurationValue.userRemote?.override !== undefined) {
|
|
46
|
-
return
|
|
47
|
+
return ConfigurationTarget.USER_REMOTE;
|
|
47
48
|
}
|
|
48
49
|
if (configurationValue.userLocal?.override !== undefined) {
|
|
49
|
-
return
|
|
50
|
+
return ConfigurationTarget.USER_LOCAL;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
if (configurationValue.memory?.value !== undefined) {
|
|
53
|
-
return
|
|
54
|
+
return ConfigurationTarget.MEMORY;
|
|
54
55
|
}
|
|
55
56
|
if (configurationValue.workspaceFolder?.value !== undefined) {
|
|
56
|
-
return
|
|
57
|
+
return ConfigurationTarget.WORKSPACE_FOLDER;
|
|
57
58
|
}
|
|
58
59
|
if (configurationValue.workspace?.value !== undefined) {
|
|
59
|
-
return
|
|
60
|
+
return ConfigurationTarget.WORKSPACE;
|
|
60
61
|
}
|
|
61
62
|
if (configurationValue.userRemote?.value !== undefined) {
|
|
62
|
-
return
|
|
63
|
+
return ConfigurationTarget.USER_REMOTE;
|
|
63
64
|
}
|
|
64
|
-
return
|
|
65
|
+
return ConfigurationTarget.USER_LOCAL;
|
|
65
66
|
}
|
|
66
67
|
_getValue(resource, position, section) {
|
|
67
68
|
const language = resource ? this.getLanguage(resource, position) : undefined;
|
|
@@ -2,7 +2,7 @@ import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
|
2
2
|
import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
3
3
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
4
|
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
5
|
-
import { Extensions as Extensions$1, configurationDefaultsSchemaId, OVERRIDE_PROPERTY_REGEX, validateProperty, getDefaultValue } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
5
|
+
import { Extensions as Extensions$1, configurationDefaultsSchemaId, ConfigurationScope, OVERRIDE_PROPERTY_REGEX, validateProperty, getDefaultValue } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
6
6
|
import { Extensions } from 'vscode/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
7
7
|
import { workspaceSettingsSchemaId, launchSchemaId, tasksSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
|
|
8
8
|
import { isObject, isUndefined } from 'vscode/vscode/vs/base/common/types';
|
|
@@ -202,7 +202,7 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
202
202
|
}
|
|
203
203
|
if (added.length) {
|
|
204
204
|
const registeredProperties = configurationRegistry.getConfigurationProperties();
|
|
205
|
-
const allowedScopes = [
|
|
205
|
+
const allowedScopes = [ConfigurationScope.MACHINE_OVERRIDABLE, ConfigurationScope.WINDOW, ConfigurationScope.RESOURCE, ConfigurationScope.LANGUAGE_OVERRIDABLE];
|
|
206
206
|
const addedDefaultConfigurations = ( (added.map(extension => {
|
|
207
207
|
const overrides = deepClone(extension.value);
|
|
208
208
|
for (const key of ( (Object.keys(overrides)))) {
|
|
@@ -302,26 +302,26 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
302
302
|
seenProperties.add(key);
|
|
303
303
|
if (propertyConfiguration.scope) {
|
|
304
304
|
if (( (propertyConfiguration.scope.toString())) === 'application') {
|
|
305
|
-
propertyConfiguration.scope =
|
|
305
|
+
propertyConfiguration.scope = ConfigurationScope.APPLICATION;
|
|
306
306
|
}
|
|
307
307
|
else if (( (propertyConfiguration.scope.toString())) === 'machine') {
|
|
308
|
-
propertyConfiguration.scope =
|
|
308
|
+
propertyConfiguration.scope = ConfigurationScope.MACHINE;
|
|
309
309
|
}
|
|
310
310
|
else if (( (propertyConfiguration.scope.toString())) === 'resource') {
|
|
311
|
-
propertyConfiguration.scope =
|
|
311
|
+
propertyConfiguration.scope = ConfigurationScope.RESOURCE;
|
|
312
312
|
}
|
|
313
313
|
else if (( (propertyConfiguration.scope.toString())) === 'machine-overridable') {
|
|
314
|
-
propertyConfiguration.scope =
|
|
314
|
+
propertyConfiguration.scope = ConfigurationScope.MACHINE_OVERRIDABLE;
|
|
315
315
|
}
|
|
316
316
|
else if (( (propertyConfiguration.scope.toString())) === 'language-overridable') {
|
|
317
|
-
propertyConfiguration.scope =
|
|
317
|
+
propertyConfiguration.scope = ConfigurationScope.LANGUAGE_OVERRIDABLE;
|
|
318
318
|
}
|
|
319
319
|
else {
|
|
320
|
-
propertyConfiguration.scope =
|
|
320
|
+
propertyConfiguration.scope = ConfigurationScope.WINDOW;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
else {
|
|
324
|
-
propertyConfiguration.scope =
|
|
324
|
+
propertyConfiguration.scope = ConfigurationScope.WINDOW;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
@@ -2,7 +2,8 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
|
2
2
|
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
4
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
5
|
-
import {
|
|
5
|
+
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
6
|
+
import { WorkbenchState, hasWorkspaceFileExtension, WORKSPACE_SUFFIX } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
6
7
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
7
8
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
9
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
@@ -11,6 +12,7 @@ import { INotificationService } from 'vscode/vscode/vs/platform/notification/com
|
|
|
11
12
|
import { joinPath, isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
12
13
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
13
14
|
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
15
|
+
import { StorageScope } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
14
16
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
15
17
|
import { isVirtualWorkspace } from 'vscode/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
16
18
|
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
@@ -33,7 +35,7 @@ let WorkspacesFinderContribution = class WorkspacesFinderContribution extends Di
|
|
|
33
35
|
}
|
|
34
36
|
async findWorkspaces() {
|
|
35
37
|
const folder = this.contextService.getWorkspace().folders[0];
|
|
36
|
-
if (!folder || this.contextService.getWorkbenchState() !==
|
|
38
|
+
if (!folder || this.contextService.getWorkbenchState() !== WorkbenchState.FOLDER || isVirtualWorkspace(this.contextService.getWorkspace())) {
|
|
37
39
|
return;
|
|
38
40
|
}
|
|
39
41
|
const rootFileNames = (await this.fileService.resolve(folder.uri)).children?.map(child => child.name);
|
|
@@ -59,7 +61,7 @@ let WorkspacesFinderContribution = class WorkspacesFinderContribution extends Di
|
|
|
59
61
|
run: () => this.hostService.openWindow([{ workspaceUri: joinPath(folder, workspaceFile) }])
|
|
60
62
|
}], {
|
|
61
63
|
neverShowAgain,
|
|
62
|
-
priority: !this.storageService.isNew(
|
|
64
|
+
priority: !this.storageService.isNew(StorageScope.WORKSPACE) ? NotificationPriority.SILENT : undefined
|
|
63
65
|
});
|
|
64
66
|
}
|
|
65
67
|
else if (workspaces.length > 1) {
|
|
@@ -79,7 +81,7 @@ let WorkspacesFinderContribution = class WorkspacesFinderContribution extends Di
|
|
|
79
81
|
}
|
|
80
82
|
}], {
|
|
81
83
|
neverShowAgain,
|
|
82
|
-
priority: !this.storageService.isNew(
|
|
84
|
+
priority: !this.storageService.isNew(StorageScope.WORKSPACE) ? NotificationPriority.SILENT : undefined
|
|
83
85
|
});
|
|
84
86
|
}
|
|
85
87
|
}
|
|
@@ -92,7 +94,7 @@ WorkspacesFinderContribution = ( (__decorate([
|
|
|
92
94
|
( (__param(4, IHostService))),
|
|
93
95
|
( (__param(5, IStorageService)))
|
|
94
96
|
], WorkspacesFinderContribution)));
|
|
95
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(WorkspacesFinderContribution,
|
|
97
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(WorkspacesFinderContribution, LifecyclePhase.Eventually);
|
|
96
98
|
registerAction2(class extends Action2 {
|
|
97
99
|
constructor() {
|
|
98
100
|
super({
|
|
@@ -113,7 +115,7 @@ registerAction2(class extends Action2 {
|
|
|
113
115
|
const hostService = accessor.get(IHostService);
|
|
114
116
|
const contextService = accessor.get(IWorkspaceContextService);
|
|
115
117
|
const notificationService = accessor.get(INotificationService);
|
|
116
|
-
if (contextService.getWorkbenchState() ===
|
|
118
|
+
if (contextService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
|
|
117
119
|
const workspaceConfiguration = contextService.getWorkspace().configuration;
|
|
118
120
|
if (workspaceConfiguration && isEqual(workspaceConfiguration, uri)) {
|
|
119
121
|
notificationService.info(( localizeWithPath(_moduleId, 5, "This workspace is already open.")));
|
|
@@ -2,11 +2,12 @@ import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
|
2
2
|
import { getErrorMessage } from 'vscode/vscode/vs/base/common/errors';
|
|
3
3
|
import { Disposable, MutableDisposable, combinedDisposable, toDisposable, DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
5
|
-
import { whenProviderRegistered } from 'vscode/vscode/vs/platform/files/common/files';
|
|
5
|
+
import { FileOperationResult, FileChangeType, FileOperation, whenProviderRegistered } from 'vscode/vscode/vs/platform/files/common/files';
|
|
6
6
|
import { UserSettings, ConfigurationModelParser, ConfigurationModel } from 'vscode/vscode/vs/platform/configuration/common/configurationModels';
|
|
7
7
|
import { StandaloneConfigurationModelParser, WorkspaceConfigurationModelParser } from '../common/configurationModels.js';
|
|
8
8
|
import { APPLY_ALL_PROFILES_SETTING, TASKS_CONFIGURATION_KEY, REMOTE_MACHINE_SCOPES, WORKSPACE_SCOPES, FOLDER_SETTINGS_NAME, FOLDER_SCOPES, LAUNCH_CONFIGURATION_KEY } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
|
|
9
|
-
import {
|
|
9
|
+
import { WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
10
|
+
import { Extensions, OVERRIDE_PROPERTY_REGEX, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
10
11
|
import { equals } from 'vscode/vscode/vs/base/common/objects';
|
|
11
12
|
import { hash } from 'vscode/vscode/vs/base/common/hash';
|
|
12
13
|
import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
@@ -92,7 +93,7 @@ class DefaultConfiguration extends DefaultConfiguration$1 {
|
|
|
92
93
|
}
|
|
93
94
|
class ApplicationConfiguration extends UserSettings {
|
|
94
95
|
constructor(userDataProfilesService, fileService, uriIdentityService, logService) {
|
|
95
|
-
super(userDataProfilesService.defaultProfile.settingsResource, { scopes: [
|
|
96
|
+
super(userDataProfilesService.defaultProfile.settingsResource, { scopes: [ConfigurationScope.APPLICATION] }, uriIdentityService.extUri, fileService, logService);
|
|
96
97
|
this._onDidChangeConfiguration = this._register(( new Emitter()));
|
|
97
98
|
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
|
98
99
|
this._register(this.onDidChange(() => this.reloadConfigurationScheduler.schedule()));
|
|
@@ -204,8 +205,8 @@ class FileServiceBasedConfiguration extends Disposable {
|
|
|
204
205
|
}
|
|
205
206
|
catch (error) {
|
|
206
207
|
this.logService.trace(`Error while resolving configuration file '${( resource.toString())}': ${getErrorMessage(error)}`);
|
|
207
|
-
if (error.fileOperationResult !==
|
|
208
|
-
&& error.fileOperationResult !==
|
|
208
|
+
if (error.fileOperationResult !== FileOperationResult.FILE_NOT_FOUND
|
|
209
|
+
&& error.fileOperationResult !== FileOperationResult.FILE_NOT_DIRECTORY) {
|
|
209
210
|
this.logService.error(error);
|
|
210
211
|
}
|
|
211
212
|
}
|
|
@@ -258,20 +259,20 @@ class FileServiceBasedConfiguration extends Disposable {
|
|
|
258
259
|
return true;
|
|
259
260
|
}
|
|
260
261
|
if (( this.allResources.some(
|
|
261
|
-
resource => event.contains(this.uriIdentityService.extUri.dirname(resource),
|
|
262
|
+
resource => event.contains(this.uriIdentityService.extUri.dirname(resource), FileChangeType.DELETED)
|
|
262
263
|
))) {
|
|
263
264
|
return true;
|
|
264
265
|
}
|
|
265
266
|
return false;
|
|
266
267
|
}
|
|
267
268
|
handleFileOperationEvent(event) {
|
|
268
|
-
if ((event.isOperation(
|
|
269
|
+
if ((event.isOperation(FileOperation.CREATE) || event.isOperation(FileOperation.COPY) || event.isOperation(FileOperation.DELETE) || event.isOperation(FileOperation.WRITE))
|
|
269
270
|
&& ( this.allResources.some(
|
|
270
271
|
resource => this.uriIdentityService.extUri.isEqual(event.resource, resource)
|
|
271
272
|
))) {
|
|
272
273
|
return true;
|
|
273
274
|
}
|
|
274
|
-
if (event.isOperation(
|
|
275
|
+
if (event.isOperation(FileOperation.DELETE) && ( this.allResources.some(
|
|
275
276
|
resource => this.uriIdentityService.extUri.isEqual(event.resource, this.uriIdentityService.extUri.dirname(resource))
|
|
276
277
|
))) {
|
|
277
278
|
return true;
|
|
@@ -344,7 +345,7 @@ class RemoteUserConfiguration extends Disposable {
|
|
|
344
345
|
content = await this._userConfiguration.resolveContent();
|
|
345
346
|
}
|
|
346
347
|
catch (error) {
|
|
347
|
-
if (error.fileOperationResult !==
|
|
348
|
+
if (error.fileOperationResult !== FileOperationResult.FILE_NOT_FOUND) {
|
|
348
349
|
return;
|
|
349
350
|
}
|
|
350
351
|
}
|
|
@@ -417,12 +418,12 @@ class FileServiceBasedRemoteUserConfiguration extends Disposable {
|
|
|
417
418
|
return this.parser.restrictedConfigurations;
|
|
418
419
|
}
|
|
419
420
|
handleFileChangesEvent(event) {
|
|
420
|
-
let affectedByChanges = event.contains(this.configurationResource,
|
|
421
|
-
if (event.contains(this.configurationResource,
|
|
421
|
+
let affectedByChanges = event.contains(this.configurationResource, FileChangeType.UPDATED);
|
|
422
|
+
if (event.contains(this.configurationResource, FileChangeType.ADDED)) {
|
|
422
423
|
affectedByChanges = true;
|
|
423
424
|
this.onResourceExists(true);
|
|
424
425
|
}
|
|
425
|
-
else if (event.contains(this.configurationResource,
|
|
426
|
+
else if (event.contains(this.configurationResource, FileChangeType.DELETED)) {
|
|
426
427
|
affectedByChanges = true;
|
|
427
428
|
this.onResourceExists(false);
|
|
428
429
|
}
|
|
@@ -431,7 +432,7 @@ class FileServiceBasedRemoteUserConfiguration extends Disposable {
|
|
|
431
432
|
}
|
|
432
433
|
}
|
|
433
434
|
handleFileOperationEvent(event) {
|
|
434
|
-
if ((event.isOperation(
|
|
435
|
+
if ((event.isOperation(FileOperation.CREATE) || event.isOperation(FileOperation.COPY) || event.isOperation(FileOperation.DELETE) || event.isOperation(FileOperation.WRITE))
|
|
435
436
|
&& this.uriIdentityService.extUri.isEqual(event.resource, this.configurationResource)) {
|
|
436
437
|
this.reloadConfigurationScheduler.schedule();
|
|
437
438
|
}
|
|
@@ -599,7 +600,7 @@ class FileServiceBasedWorkspaceConfiguration extends Disposable {
|
|
|
599
600
|
this.onDidChange = this._onDidChange.event;
|
|
600
601
|
this.workspaceConfigurationModelParser = ( new WorkspaceConfigurationModelParser('', logService));
|
|
601
602
|
this.workspaceSettings = ConfigurationModel.createEmptyModel(logService);
|
|
602
|
-
this._register(Event.any(Event.filter(this.fileService.onDidFilesChange, e => !!this._workspaceIdentifier && e.contains(this._workspaceIdentifier.configPath)), Event.filter(this.fileService.onDidRunOperation, e => !!this._workspaceIdentifier && (e.isOperation(
|
|
603
|
+
this._register(Event.any(Event.filter(this.fileService.onDidFilesChange, e => !!this._workspaceIdentifier && e.contains(this._workspaceIdentifier.configPath)), Event.filter(this.fileService.onDidRunOperation, e => !!this._workspaceIdentifier && (e.isOperation(FileOperation.CREATE) || e.isOperation(FileOperation.COPY) || e.isOperation(FileOperation.DELETE) || e.isOperation(FileOperation.WRITE)) && uriIdentityService.extUri.isEqual(e.resource, this._workspaceIdentifier.configPath)))(() => this.reloadConfigurationScheduler.schedule()));
|
|
603
604
|
this.reloadConfigurationScheduler = this._register(( new RunOnceScheduler(() => this._onDidChange.fire(), 50)));
|
|
604
605
|
this.workspaceConfigWatcher = this._register(this.watchWorkspaceConfigurationFile());
|
|
605
606
|
}
|
|
@@ -800,7 +801,7 @@ class FolderConfiguration extends Disposable {
|
|
|
800
801
|
this.configurationCache = configurationCache;
|
|
801
802
|
this._onDidChange = this._register(( new Emitter()));
|
|
802
803
|
this.onDidChange = this._onDidChange.event;
|
|
803
|
-
this.scopes =
|
|
804
|
+
this.scopes = WorkbenchState.WORKSPACE === this.workbenchState ? FOLDER_SCOPES : WORKSPACE_SCOPES;
|
|
804
805
|
this.configurationFolder = uriIdentityService.extUri.joinPath(workspaceFolder.uri, configFolderRelativePath);
|
|
805
806
|
this.cachedFolderConfiguration = ( new CachedFolderConfiguration(
|
|
806
807
|
workspaceFolder.uri,
|