@codingame/monaco-vscode-configuration-service-override 12.0.1 → 13.1.0
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/index.d.ts +6 -6
- package/index.js +28 -28
- package/package.json +9 -17
- package/vscode/src/vs/editor/common/services/textResourceConfigurationService.d.ts +9 -9
- package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +8 -8
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +57 -57
- package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.d.ts +8 -8
- package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js +27 -27
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.d.ts +14 -14
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +14 -14
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.d.ts +16 -16
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +35 -35
- package/vscode/src/vs/workbench/services/configuration/common/configurationCache.d.ts +3 -3
- package/vscode/src/vs/workbench/services/configuration/common/configurationCache.js +4 -4
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.d.ts +13 -13
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +66 -66
- package/vscode/src/vs/workbench/services/configuration/common/configurationModels.d.ts +6 -6
- package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.d.ts +14 -14
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +18 -18
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.d.ts +9 -9
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +12 -12
- package/vscode/src/vs/workbench/services/textresourceProperties/common/textResourcePropertiesService.d.ts +6 -6
- package/vscode/src/vs/workbench/services/textresourceProperties/common/textResourcePropertiesService.js +10 -10
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.d.ts +18 -18
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +31 -31
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.d.ts +11 -11
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +18 -18
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
-
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
4
|
-
import { ConfigurationScope, type IConfigurationDefaults, type IConfigurationNode, type IConfigurationRegistry } from "vscode/vscode/vs/platform/configuration/common/configurationRegistry";
|
|
5
|
-
import type { IFileWriteOptions } from "vscode/vscode/vs/platform/files/common/files";
|
|
6
|
-
import type { IAnyWorkspaceIdentifier, IEmptyWorkspaceIdentifier, ISingleFolderWorkspaceIdentifier, IWorkspaceIdentifier } from "vscode/vscode/vs/platform/workspace/common/workspace";
|
|
1
|
+
import type { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import type { IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscode/vs/editor/standalone/browser/standaloneServices";
|
|
4
|
+
import { ConfigurationScope, type IConfigurationDefaults, type IConfigurationNode, type IConfigurationRegistry } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry";
|
|
5
|
+
import type { IFileWriteOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
6
|
+
import type { IAnyWorkspaceIdentifier, IEmptyWorkspaceIdentifier, ISingleFolderWorkspaceIdentifier, IWorkspaceIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace";
|
|
7
7
|
import type { IStoredWorkspace, IWorkspaceFolderCreationData } from "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces";
|
|
8
8
|
import type { IColorCustomizations, IThemeScopedColorCustomizations } from "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService";
|
|
9
9
|
declare const defaultUserConfigurationFile: URI;
|
package/index.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
4
|
-
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
5
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
|
-
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
7
|
-
import { ITextResourceConfigurationService, ITextResourcePropertiesService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
4
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
5
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
6
|
+
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
7
|
+
import { ITextResourceConfigurationService, ITextResourcePropertiesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
8
8
|
import { TextResourceConfigurationService } from './vscode/src/vs/editor/common/services/textResourceConfigurationService.js';
|
|
9
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
-
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
11
|
-
export { ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
12
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
13
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
14
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
16
|
-
import { IPolicyService } from 'vscode/vscode/vs/platform/policy/common/policy.service';
|
|
17
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
18
|
-
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
19
|
-
import { IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
20
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
21
|
-
import { IWorkspacesService } from 'vscode/vscode/vs/platform/workspaces/common/workspaces.service';
|
|
9
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
11
|
+
export { ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
12
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
13
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
14
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
16
|
+
import { IPolicyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/policy/common/policy.service';
|
|
17
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
18
|
+
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
19
|
+
import { IUserDataProfilesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
20
|
+
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
21
|
+
import { IWorkspacesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service';
|
|
22
22
|
import './vscode/src/vs/workbench/api/common/configurationExtensionPoint.js';
|
|
23
23
|
import './vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js';
|
|
24
24
|
import { WorkspaceService } from './vscode/src/vs/workbench/services/configuration/browser/configurationService.js';
|
|
25
25
|
import { ConfigurationCache } from './vscode/src/vs/workbench/services/configuration/common/configurationCache.js';
|
|
26
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
27
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
26
|
+
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
27
|
+
import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
28
28
|
import { TextResourcePropertiesService } from './vscode/src/vs/workbench/services/textresourceProperties/common/textResourcePropertiesService.js';
|
|
29
|
-
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
29
|
+
import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
30
30
|
import { AbstractWorkspaceEditingService } from './vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js';
|
|
31
31
|
import { BrowserWorkspacesService } from './vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js';
|
|
32
|
-
import { IWorkspaceEditingService } from 'vscode/vscode/vs/workbench/services/workspaces/common/workspaceEditing.service';
|
|
32
|
+
import { IWorkspaceEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workspaces/common/workspaceEditing.service';
|
|
33
33
|
import { ConfigurationResolverService } from './vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js';
|
|
34
|
-
import { IConfigurationResolverService } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.service';
|
|
34
|
+
import { IConfigurationResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.service';
|
|
35
35
|
import getServiceOverride$1, { initFile } from '@codingame/monaco-vscode-files-service-override';
|
|
36
|
-
import { registerServiceInitializePreParticipant } from 'vscode/lifecycle';
|
|
37
|
-
import { getService, withReadyServices } from 'vscode/services';
|
|
38
|
-
import { unsupported, memoizedConstructor } from 'vscode/tools';
|
|
39
|
-
import { getWorkspaceIdentifier } from 'vscode/workbench';
|
|
36
|
+
import { registerServiceInitializePreParticipant } from '@codingame/monaco-vscode-api/lifecycle';
|
|
37
|
+
import { getService, withReadyServices } from '@codingame/monaco-vscode-api/services';
|
|
38
|
+
import { unsupported, memoizedConstructor } from '@codingame/monaco-vscode-api/tools';
|
|
39
|
+
import { getWorkspaceIdentifier } from '@codingame/monaco-vscode-api/workbench';
|
|
40
40
|
|
|
41
41
|
const defaultUserConfigurationFile = URI.from({
|
|
42
42
|
scheme: Schemas.vscodeUserData,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-configuration-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - configuration service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,22 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common": "
|
|
19
|
-
"@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "
|
|
20
|
-
"@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": "
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"
|
|
26
|
-
},
|
|
27
|
-
"peerDependencies": {
|
|
28
|
-
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "12.0.1"
|
|
29
|
-
},
|
|
30
|
-
"peerDependenciesMeta": {
|
|
31
|
-
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": {
|
|
32
|
-
"optional": true
|
|
33
|
-
}
|
|
18
|
+
"@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-api": "13.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common": "13.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-d987325e-3e05-53aa-b9ff-6f97476f64db-common": "13.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-files-service-override": "13.1.0"
|
|
34
26
|
},
|
|
35
27
|
"main": "index.js",
|
|
36
28
|
"module": "index.js",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
4
|
-
import { IPosition } from "vscode/vscode/vs/editor/common/core/position";
|
|
5
|
-
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
6
|
-
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
7
|
-
import { ITextResourceConfigurationService, ITextResourceConfigurationChangeEvent } from "vscode/vscode/vs/editor/common/services/textResourceConfiguration";
|
|
8
|
-
import { ConfigurationTarget, IConfigurationValue } from "vscode/vscode/vs/platform/configuration/common/configuration";
|
|
9
|
-
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
+
import { IPosition } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position";
|
|
5
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
6
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
7
|
+
import { ITextResourceConfigurationService, ITextResourceConfigurationChangeEvent } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration";
|
|
8
|
+
import { ConfigurationTarget, IConfigurationValue } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration";
|
|
9
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
10
10
|
export declare class TextResourceConfigurationService extends Disposable implements ITextResourceConfigurationService {
|
|
11
11
|
private readonly configurationService;
|
|
12
12
|
private readonly modelService;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { Position } from 'vscode/vscode/vs/editor/common/core/position';
|
|
6
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
7
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
8
|
-
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
9
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { Position } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/position';
|
|
6
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
7
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
8
|
+
import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration';
|
|
9
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
10
|
|
|
11
11
|
let TextResourceConfigurationService = class TextResourceConfigurationService extends Disposable {
|
|
12
12
|
constructor(configurationService, modelService, languageService) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { deepClone } from 'vscode/vscode/vs/base/common/objects';
|
|
4
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
5
|
-
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
6
|
-
import { Extensions as Extensions$1, configurationDefaultsSchemaId, ConfigurationScope, OVERRIDE_PROPERTY_REGEX, validateProperty, parseScope, getAllConfigurationProperties, getDefaultValue } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
7
|
-
import { Extensions } from 'vscode/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
2
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
|
+
import { deepClone } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
4
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
5
|
+
import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
6
|
+
import { Extensions as Extensions$1, configurationDefaultsSchemaId, ConfigurationScope, OVERRIDE_PROPERTY_REGEX, validateProperty, parseScope, getAllConfigurationProperties, getDefaultValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
7
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
|
|
8
8
|
import { workspaceSettingsSchemaId, launchSchemaId, tasksSchemaId } from '@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common/vscode/vs/workbench/services/configuration/common/configuration';
|
|
9
|
-
import { isObject, isUndefined } from 'vscode/vscode/vs/base/common/types';
|
|
10
|
-
import { ExtensionIdentifierMap } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
11
|
-
import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
12
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
13
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
14
|
-
import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
9
|
+
import { isObject, isUndefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
10
|
+
import { ExtensionIdentifierMap } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
11
|
+
import { Extensions as Extensions$2 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
12
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
13
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
14
|
+
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
15
15
|
|
|
16
16
|
const jsonRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
17
17
|
const configurationRegistry = ( Registry.as(Extensions$1.Configuration));
|
|
@@ -21,29 +21,29 @@ const configurationEntrySchema = {
|
|
|
21
21
|
properties: {
|
|
22
22
|
title: {
|
|
23
23
|
description: ( localize(
|
|
24
|
-
|
|
24
|
+
2388,
|
|
25
25
|
'A title for the current category of settings. This label will be rendered in the Settings editor as a subheading. If the title is the same as the extension display name, then the category will be grouped under the main extension heading.'
|
|
26
26
|
)),
|
|
27
27
|
type: 'string'
|
|
28
28
|
},
|
|
29
29
|
order: {
|
|
30
30
|
description: ( localize(
|
|
31
|
-
|
|
31
|
+
2389,
|
|
32
32
|
'When specified, gives the order of this category of settings relative to other categories.'
|
|
33
33
|
)),
|
|
34
34
|
type: 'integer'
|
|
35
35
|
},
|
|
36
36
|
properties: {
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(2390, 'Description of the configuration properties.')),
|
|
38
38
|
type: 'object',
|
|
39
39
|
propertyNames: {
|
|
40
40
|
pattern: '\\S+',
|
|
41
|
-
patternErrorMessage: ( localize(
|
|
41
|
+
patternErrorMessage: ( localize(2391, 'Property should not be empty.')),
|
|
42
42
|
},
|
|
43
43
|
additionalProperties: {
|
|
44
44
|
anyOf: [
|
|
45
45
|
{
|
|
46
|
-
title: ( localize(
|
|
46
|
+
title: ( localize(2392, 'Schema of the configuration property.')),
|
|
47
47
|
$ref: 'http://json-schema.org/draft-07/schema#'
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -54,30 +54,30 @@ const configurationEntrySchema = {
|
|
|
54
54
|
enum: ['application', 'machine', 'window', 'resource', 'language-overridable', 'machine-overridable'],
|
|
55
55
|
default: 'window',
|
|
56
56
|
enumDescriptions: [
|
|
57
|
-
( localize(
|
|
57
|
+
( localize(2393, "Configuration that can be configured only in the user settings.")),
|
|
58
58
|
( localize(
|
|
59
|
-
|
|
59
|
+
2394,
|
|
60
60
|
"Configuration that can be configured only in the user settings or only in the remote settings."
|
|
61
61
|
)),
|
|
62
62
|
( localize(
|
|
63
|
-
|
|
63
|
+
2395,
|
|
64
64
|
"Configuration that can be configured in the user, remote or workspace settings."
|
|
65
65
|
)),
|
|
66
66
|
( localize(
|
|
67
|
-
|
|
67
|
+
2396,
|
|
68
68
|
"Configuration that can be configured in the user, remote, workspace or folder settings."
|
|
69
69
|
)),
|
|
70
70
|
( localize(
|
|
71
|
-
|
|
71
|
+
2397,
|
|
72
72
|
"Resource configuration that can be configured in language specific settings."
|
|
73
73
|
)),
|
|
74
74
|
( localize(
|
|
75
|
-
|
|
75
|
+
2398,
|
|
76
76
|
"Machine configuration that can be configured also in workspace or folder settings."
|
|
77
77
|
))
|
|
78
78
|
],
|
|
79
79
|
markdownDescription: ( localize(
|
|
80
|
-
|
|
80
|
+
2399,
|
|
81
81
|
"Scope in which the configuration is applicable. Available scopes are `application`, `machine`, `window`, `resource`, and `machine-overridable`."
|
|
82
82
|
))
|
|
83
83
|
},
|
|
@@ -86,14 +86,14 @@ const configurationEntrySchema = {
|
|
|
86
86
|
items: {
|
|
87
87
|
type: 'string',
|
|
88
88
|
},
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(2400, 'Descriptions for enum values'))
|
|
90
90
|
},
|
|
91
91
|
markdownEnumDescriptions: {
|
|
92
92
|
type: 'array',
|
|
93
93
|
items: {
|
|
94
94
|
type: 'string',
|
|
95
95
|
},
|
|
96
|
-
description: ( localize(
|
|
96
|
+
description: ( localize(2401, 'Descriptions for enum values in the markdown format.'))
|
|
97
97
|
},
|
|
98
98
|
enumItemLabels: {
|
|
99
99
|
type: 'array',
|
|
@@ -101,26 +101,26 @@ const configurationEntrySchema = {
|
|
|
101
101
|
type: 'string'
|
|
102
102
|
},
|
|
103
103
|
markdownDescription: ( localize(
|
|
104
|
-
|
|
104
|
+
2402,
|
|
105
105
|
'Labels for enum values to be displayed in the Settings editor. When specified, the {0} values still show after the labels, but less prominently.',
|
|
106
106
|
'`enum`'
|
|
107
107
|
))
|
|
108
108
|
},
|
|
109
109
|
markdownDescription: {
|
|
110
110
|
type: 'string',
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(2403, 'The description in the markdown format.'))
|
|
112
112
|
},
|
|
113
113
|
deprecationMessage: {
|
|
114
114
|
type: 'string',
|
|
115
115
|
description: ( localize(
|
|
116
|
-
|
|
116
|
+
2404,
|
|
117
117
|
'If set, the property is marked as deprecated and the given message is shown as an explanation.'
|
|
118
118
|
))
|
|
119
119
|
},
|
|
120
120
|
markdownDeprecationMessage: {
|
|
121
121
|
type: 'string',
|
|
122
122
|
description: ( localize(
|
|
123
|
-
|
|
123
|
+
2405,
|
|
124
124
|
'If set, the property is marked as deprecated and the given message is shown as an explanation in the markdown format.'
|
|
125
125
|
))
|
|
126
126
|
},
|
|
@@ -128,26 +128,26 @@ const configurationEntrySchema = {
|
|
|
128
128
|
type: 'string',
|
|
129
129
|
enum: ['singlelineText', 'multilineText'],
|
|
130
130
|
enumDescriptions: [
|
|
131
|
-
( localize(
|
|
132
|
-
( localize(
|
|
131
|
+
( localize(2406, 'The value will be shown in an inputbox.')),
|
|
132
|
+
( localize(2407, 'The value will be shown in a textarea.'))
|
|
133
133
|
],
|
|
134
134
|
default: 'singlelineText',
|
|
135
135
|
description: ( localize(
|
|
136
|
-
|
|
136
|
+
2408,
|
|
137
137
|
'When specified, controls the presentation format of the string setting.'
|
|
138
138
|
))
|
|
139
139
|
},
|
|
140
140
|
order: {
|
|
141
141
|
type: 'integer',
|
|
142
142
|
description: ( localize(
|
|
143
|
-
|
|
143
|
+
2409,
|
|
144
144
|
'When specified, gives the order of this setting relative to other settings within the same category. Settings with an order property will be placed before settings without this property set.'
|
|
145
145
|
))
|
|
146
146
|
},
|
|
147
147
|
ignoreSync: {
|
|
148
148
|
type: 'boolean',
|
|
149
149
|
description: ( localize(
|
|
150
|
-
|
|
150
|
+
2410,
|
|
151
151
|
'When enabled, Settings Sync will not sync the user value of this configuration by default.'
|
|
152
152
|
))
|
|
153
153
|
},
|
|
@@ -192,7 +192,7 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
192
192
|
const registeredPropertyScheme = registeredProperties[key];
|
|
193
193
|
if (registeredPropertyScheme?.disallowConfigurationDefault) {
|
|
194
194
|
extension.collector.warn(( localize(
|
|
195
|
-
|
|
195
|
+
2411,
|
|
196
196
|
"Cannot register configuration defaults for '{0}'. This setting does not allow contributing configuration defaults.",
|
|
197
197
|
key
|
|
198
198
|
)));
|
|
@@ -202,7 +202,7 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
202
202
|
if (!OVERRIDE_PROPERTY_REGEX.test(key)) {
|
|
203
203
|
if (registeredPropertyScheme?.scope && !allowedScopes.includes(registeredPropertyScheme.scope)) {
|
|
204
204
|
extension.collector.warn(( localize(
|
|
205
|
-
|
|
205
|
+
2412,
|
|
206
206
|
"Cannot register configuration defaults for '{0}'. Only defaults for machine-overridable, window, resource and language overridable scoped settings are supported.",
|
|
207
207
|
key
|
|
208
208
|
)));
|
|
@@ -220,7 +220,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
220
220
|
extensionPoint: 'configuration',
|
|
221
221
|
deps: [defaultConfigurationExtPoint],
|
|
222
222
|
jsonSchema: {
|
|
223
|
-
description: ( localize(
|
|
223
|
+
description: ( localize(2413, 'Contributes configuration settings.')),
|
|
224
224
|
oneOf: [
|
|
225
225
|
configurationEntrySchema,
|
|
226
226
|
{
|
|
@@ -246,7 +246,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
246
246
|
function handleConfiguration(node, extension) {
|
|
247
247
|
const configuration = deepClone(node);
|
|
248
248
|
if (configuration.title && (typeof configuration.title !== 'string')) {
|
|
249
|
-
extension.collector.error(( localize(
|
|
249
|
+
extension.collector.error(( localize(2414, "'configuration.title' must be a string")));
|
|
250
250
|
}
|
|
251
251
|
validateProperties(configuration, extension);
|
|
252
252
|
configuration.id = node.id || extension.description.identifier.value;
|
|
@@ -259,7 +259,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
259
259
|
const properties = configuration.properties;
|
|
260
260
|
if (properties) {
|
|
261
261
|
if (typeof properties !== 'object') {
|
|
262
|
-
extension.collector.error(( localize(
|
|
262
|
+
extension.collector.error(( localize(2415, "'configuration.properties' must be an object")));
|
|
263
263
|
configuration.properties = {};
|
|
264
264
|
}
|
|
265
265
|
for (const key in properties) {
|
|
@@ -272,12 +272,12 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
272
272
|
}
|
|
273
273
|
if (( seenProperties.has(key))) {
|
|
274
274
|
delete properties[key];
|
|
275
|
-
extension.collector.warn(( localize(
|
|
275
|
+
extension.collector.warn(( localize(2416, "Cannot register '{0}'. This property is already registered.", key)));
|
|
276
276
|
continue;
|
|
277
277
|
}
|
|
278
278
|
if (!isObject(propertyConfiguration)) {
|
|
279
279
|
delete properties[key];
|
|
280
|
-
extension.collector.error(( localize(
|
|
280
|
+
extension.collector.error(( localize(2417, "configuration.properties property '{0}' must be an object", key)));
|
|
281
281
|
continue;
|
|
282
282
|
}
|
|
283
283
|
seenProperties.add(key);
|
|
@@ -287,7 +287,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
287
287
|
const subNodes = configuration.allOf;
|
|
288
288
|
if (subNodes) {
|
|
289
289
|
extension.collector.error(( localize(
|
|
290
|
-
|
|
290
|
+
2418,
|
|
291
291
|
"'configuration.allOf' is deprecated and should no longer be used. Instead, pass multiple configuration sections as an array to the 'configuration' contribution point."
|
|
292
292
|
)));
|
|
293
293
|
for (const node of subNodes) {
|
|
@@ -330,7 +330,7 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
330
330
|
'folders': {
|
|
331
331
|
minItems: 0,
|
|
332
332
|
uniqueItems: true,
|
|
333
|
-
description: ( localize(
|
|
333
|
+
description: ( localize(2419, "List of folders to be loaded in the workspace.")),
|
|
334
334
|
items: {
|
|
335
335
|
type: 'object',
|
|
336
336
|
defaultSnippets: [{ body: { path: '$1' } }],
|
|
@@ -339,13 +339,13 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
339
339
|
path: {
|
|
340
340
|
type: 'string',
|
|
341
341
|
description: ( localize(
|
|
342
|
-
|
|
342
|
+
2420,
|
|
343
343
|
"A file path. e.g. `/root/folderA` or `./folderA` for a relative path that will be resolved against the location of the workspace file."
|
|
344
344
|
))
|
|
345
345
|
},
|
|
346
346
|
name: {
|
|
347
347
|
type: 'string',
|
|
348
|
-
description: ( localize(
|
|
348
|
+
description: ( localize(2421, "An optional name for the folder. "))
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
351
|
required: ['path']
|
|
@@ -353,11 +353,11 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
353
353
|
properties: {
|
|
354
354
|
uri: {
|
|
355
355
|
type: 'string',
|
|
356
|
-
description: ( localize(
|
|
356
|
+
description: ( localize(2422, "URI of the folder"))
|
|
357
357
|
},
|
|
358
358
|
name: {
|
|
359
359
|
type: 'string',
|
|
360
|
-
description: ( localize(
|
|
360
|
+
description: ( localize(2421, "An optional name for the folder. "))
|
|
361
361
|
}
|
|
362
362
|
},
|
|
363
363
|
required: ['uri']
|
|
@@ -367,39 +367,39 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
|
|
|
367
367
|
'settings': {
|
|
368
368
|
type: 'object',
|
|
369
369
|
default: {},
|
|
370
|
-
description: ( localize(
|
|
370
|
+
description: ( localize(2423, "Workspace settings")),
|
|
371
371
|
$ref: workspaceSettingsSchemaId
|
|
372
372
|
},
|
|
373
373
|
'launch': {
|
|
374
374
|
type: 'object',
|
|
375
375
|
default: { configurations: [], compounds: [] },
|
|
376
|
-
description: ( localize(
|
|
376
|
+
description: ( localize(2424, "Workspace launch configurations")),
|
|
377
377
|
$ref: launchSchemaId
|
|
378
378
|
},
|
|
379
379
|
'tasks': {
|
|
380
380
|
type: 'object',
|
|
381
381
|
default: { version: '2.0.0', tasks: [] },
|
|
382
|
-
description: ( localize(
|
|
382
|
+
description: ( localize(2425, "Workspace task configurations")),
|
|
383
383
|
$ref: tasksSchemaId
|
|
384
384
|
},
|
|
385
385
|
'extensions': {
|
|
386
386
|
type: 'object',
|
|
387
387
|
default: {},
|
|
388
|
-
description: ( localize(
|
|
388
|
+
description: ( localize(2426, "Workspace extensions")),
|
|
389
389
|
$ref: 'vscode://schemas/extensions'
|
|
390
390
|
},
|
|
391
391
|
'remoteAuthority': {
|
|
392
392
|
type: 'string',
|
|
393
393
|
doNotSuggest: true,
|
|
394
|
-
description: ( localize(
|
|
394
|
+
description: ( localize(2427, "The remote server where the workspace is located.")),
|
|
395
395
|
},
|
|
396
396
|
'transient': {
|
|
397
397
|
type: 'boolean',
|
|
398
398
|
doNotSuggest: true,
|
|
399
|
-
description: ( localize(
|
|
399
|
+
description: ( localize(2428, "A transient workspace will disappear when restarting or reloading.")),
|
|
400
400
|
}
|
|
401
401
|
},
|
|
402
|
-
errorMessage: ( localize(
|
|
402
|
+
errorMessage: ( localize(2429, "Unknown workspace configuration property"))
|
|
403
403
|
});
|
|
404
404
|
class SettingsTableRenderer extends Disposable {
|
|
405
405
|
constructor() {
|
|
@@ -415,7 +415,7 @@ class SettingsTableRenderer extends Disposable {
|
|
|
415
415
|
: [];
|
|
416
416
|
const properties = getAllConfigurationProperties(configuration);
|
|
417
417
|
const contrib = ( Object.keys(properties)) ;
|
|
418
|
-
const headers = [( localize(
|
|
418
|
+
const headers = [( localize(2430, "ID")), ( localize(2431, "Description")), ( localize(2432, "Default"))];
|
|
419
419
|
const rows = ( contrib.sort((a, b) => a.localeCompare(b))
|
|
420
420
|
.map(key => {
|
|
421
421
|
return [
|
|
@@ -435,7 +435,7 @@ class SettingsTableRenderer extends Disposable {
|
|
|
435
435
|
}
|
|
436
436
|
( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
437
437
|
id: 'configuration',
|
|
438
|
-
label: ( localize(
|
|
438
|
+
label: ( localize(2433, "Settings")),
|
|
439
439
|
access: {
|
|
440
440
|
canToggle: false
|
|
441
441
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
2
|
-
import { IWorkspaceContextService } from "vscode/vscode/vs/platform/workspace/common/workspace.service";
|
|
3
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
-
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
5
|
-
import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
|
|
6
|
-
import { IHostService } from "vscode/vscode/vs/workbench/services/host/browser/host.service";
|
|
7
|
-
import { IQuickInputService } from "vscode/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
8
|
-
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
1
|
+
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
2
|
+
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
3
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
5
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
6
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
7
|
+
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
8
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
9
9
|
export declare class WorkspacesFinderContribution extends Disposable implements IWorkbenchContribution {
|
|
10
10
|
private readonly contextService;
|
|
11
11
|
private readonly notificationService;
|