@codingame/monaco-vscode-configuration-service-override 20.1.1 → 20.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-configuration-service-override",
3
- "version": "20.1.1",
3
+ "version": "20.2.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - configuration service-override",
6
6
  "keywords": [],
@@ -15,13 +15,13 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "20.1.1",
19
- "@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "20.1.1",
20
- "@codingame/monaco-vscode-api": "20.1.1",
21
- "@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "20.1.1",
22
- "@codingame/monaco-vscode-d987325e-3e05-53aa-b9ff-6f97476f64db-common": "20.1.1",
23
- "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.1.1",
24
- "@codingame/monaco-vscode-files-service-override": "20.1.1"
18
+ "@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "20.2.1",
19
+ "@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "20.2.1",
20
+ "@codingame/monaco-vscode-api": "20.2.1",
21
+ "@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common": "20.2.1",
22
+ "@codingame/monaco-vscode-d987325e-3e05-53aa-b9ff-6f97476f64db-common": "20.2.1",
23
+ "@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "20.2.1",
24
+ "@codingame/monaco-vscode-files-service-override": "20.2.1"
25
25
  },
26
26
  "main": "index.js",
27
27
  "module": "index.js",
@@ -11,14 +11,42 @@ export declare enum TargetPopulation {
11
11
  Exploration = "exploration"
12
12
  }
13
13
  export declare enum Filters {
14
+ /**
15
+ * The market in which the extension is distributed.
16
+ */
14
17
  Market = "X-MSEdge-Market",
18
+ /**
19
+ * The corporation network.
20
+ */
15
21
  CorpNet = "X-FD-Corpnet",
22
+ /**
23
+ * Version of the application which uses experimentation service.
24
+ */
16
25
  ApplicationVersion = "X-VSCode-AppVersion",
26
+ /**
27
+ * Insiders vs Stable.
28
+ */
17
29
  Build = "X-VSCode-Build",
30
+ /**
31
+ * Client Id which is used as primary unit for the experimentation.
32
+ */
18
33
  ClientId = "X-MSEdge-ClientId",
34
+ /**
35
+ * Extension header.
36
+ */
19
37
  ExtensionName = "X-VSCode-ExtensionName",
38
+ /**
39
+ * The version of the extension.
40
+ */
20
41
  ExtensionVersion = "X-VSCode-ExtensionVersion",
42
+ /**
43
+ * The language in use by VS Code
44
+ */
21
45
  Language = "X-VSCode-Language",
46
+ /**
47
+ * The target population.
48
+ * This is used to separate internal, early preview, GA, etc.
49
+ */
22
50
  TargetPopulation = "X-VSCode-TargetPopulation"
23
51
  }
24
52
  export declare class AssignmentFilterProvider implements IExperimentationFilterProvider {
@@ -27,6 +55,13 @@ export declare class AssignmentFilterProvider implements IExperimentationFilterP
27
55
  private machineId;
28
56
  private targetPopulation;
29
57
  constructor(version: string, appName: string, machineId: string, targetPopulation: TargetPopulation);
58
+ /**
59
+ * Returns a version string that can be parsed by the TAS client.
60
+ * The tas client cannot handle suffixes lke "-insider"
61
+ * Ref: https://github.com/microsoft/tas-client/blob/30340d5e1da37c2789049fcf45928b954680606f/vscode-tas-client/src/vscode-tas-client/VSCodeFilterProvider.ts#L35
62
+ *
63
+ * @param version Version string to be trimmed.
64
+ */
30
65
  private static trimVersionSuffix;
31
66
  getFilterValue(filter: string): string | null;
32
67
  getFilters(): Map<string, any>;
@@ -6,6 +6,10 @@ import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/pla
6
6
  import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
7
7
  import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
8
8
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
9
+ /**
10
+ * A workbench contribution that will look for `.code-workspace` files in the root of the
11
+ * workspace folder and open a notification to suggest to open one of the workspaces.
12
+ */
9
13
  export declare class WorkspacesFinderContribution extends Disposable implements IWorkbenchContribution {
10
14
  private readonly contextService;
11
15
  private readonly notificationService;
@@ -97,6 +97,19 @@ export declare class WorkspaceService extends Disposable implements IWorkbenchCo
97
97
  workspaceFolder: string[];
98
98
  };
99
99
  whenRemoteConfigurationLoaded(): Promise<void>;
100
+ /**
101
+ * At present, all workspaces (empty, single-folder, multi-root) in local and remote
102
+ * can be initialized without requiring extension host except following case:
103
+ *
104
+ * A multi root workspace with .code-workspace file that has to be resolved by an extension.
105
+ * Because of readonly `rootPath` property in extension API we have to resolve multi root workspace
106
+ * before extension host starts so that `rootPath` can be set to first folder.
107
+ *
108
+ * This restriction is lifted partially for web in `MainThreadWorkspace`.
109
+ * In web, we start extension host with empty `rootPath` in this case.
110
+ *
111
+ * Related root path issue discussion is being tracked here - https://github.com/microsoft/vscode/issues/69335
112
+ */
100
113
  initialize(arg: IAnyWorkspaceIdentifier): Promise<void>;
101
114
  updateWorkspaceTrust(trusted: boolean): void;
102
115
  acquireInstantiationService(instantiationService: IInstantiationService): void;
@@ -14,19 +14,61 @@ import { IUserDataProfilesService } from "@codingame/monaco-vscode-api/vscode/vs
14
14
  import { ErrorNoTelemetry } from "@codingame/monaco-vscode-api/vscode/vs/base/common/errors";
15
15
  import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
16
16
  export declare enum ConfigurationEditingErrorCode {
17
+ /**
18
+ * Error when trying to write a configuration key that is not registered.
19
+ */
17
20
  ERROR_UNKNOWN_KEY = 0,
21
+ /**
22
+ * Error when trying to write an application setting into workspace settings.
23
+ */
18
24
  ERROR_INVALID_WORKSPACE_CONFIGURATION_APPLICATION = 1,
25
+ /**
26
+ * Error when trying to write a machne setting into workspace settings.
27
+ */
19
28
  ERROR_INVALID_WORKSPACE_CONFIGURATION_MACHINE = 2,
29
+ /**
30
+ * Error when trying to write an invalid folder configuration key to folder settings.
31
+ */
20
32
  ERROR_INVALID_FOLDER_CONFIGURATION = 3,
33
+ /**
34
+ * Error when trying to write to user target but not supported for provided key.
35
+ */
21
36
  ERROR_INVALID_USER_TARGET = 4,
37
+ /**
38
+ * Error when trying to write to user target but not supported for provided key.
39
+ */
22
40
  ERROR_INVALID_WORKSPACE_TARGET = 5,
41
+ /**
42
+ * Error when trying to write a configuration key to folder target
43
+ */
23
44
  ERROR_INVALID_FOLDER_TARGET = 6,
45
+ /**
46
+ * Error when trying to write to language specific setting but not supported for preovided key
47
+ */
24
48
  ERROR_INVALID_RESOURCE_LANGUAGE_CONFIGURATION = 7,
49
+ /**
50
+ * Error when trying to write to the workspace configuration without having a workspace opened.
51
+ */
25
52
  ERROR_NO_WORKSPACE_OPENED = 8,
53
+ /**
54
+ * Error when trying to write and save to the configuration file while it is dirty in the editor.
55
+ */
26
56
  ERROR_CONFIGURATION_FILE_DIRTY = 9,
57
+ /**
58
+ * Error when trying to write and save to the configuration file while it is not the latest in the disk.
59
+ */
27
60
  ERROR_CONFIGURATION_FILE_MODIFIED_SINCE = 10,
61
+ /**
62
+ * Error when trying to write to a configuration file that contains JSON errors.
63
+ */
28
64
  ERROR_INVALID_CONFIGURATION = 11,
65
+ /**
66
+ * Error when trying to write a policy configuration
67
+ */
29
68
  ERROR_POLICY_CONFIGURATION = 12,
69
+ /**
70
+ * Internal Error.
71
+ */
30
72
  ERROR_INTERNAL = 13
31
73
  }
32
74
  export declare class ConfigurationEditingError extends ErrorNoTelemetry {
@@ -38,6 +80,9 @@ export interface IConfigurationValue {
38
80
  value: unknown;
39
81
  }
40
82
  export interface IConfigurationEditingOptions extends IConfigurationUpdateOptions {
83
+ /**
84
+ * Scope of configuration to be written into.
85
+ */
41
86
  scopes?: IConfigurationUpdateOverrides;
42
87
  }
43
88
  export declare enum EditableConfigurationTarget {