@codingame/monaco-vscode-configuration-service-override 37.6.1 → 38.0.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/common.js +6 -0
- package/package.json +3 -3
- package/vscode/src/vs/sessions/services/configuration/browser/configurationService.js +12 -5
- package/vscode/src/vs/sessions/services/workspace/browser/workspaceContextService.js +2 -2
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +62 -62
- package/vscode/src/vs/workbench/contrib/workspaces/browser/workspaces.contribution.js +15 -16
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +52 -11
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +43 -43
- package/vscode/src/vs/workbench/services/configuration/common/experimentalSettings.d.ts +12 -0
- package/vscode/src/vs/workbench/services/configuration/common/experimentalSettings.js +40 -0
- package/vscode/src/vs/workbench/services/configuration/common/managedSettingsPresentation.d.ts +15 -0
- package/vscode/src/vs/workbench/services/configuration/common/managedSettingsPresentation.js +55 -0
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +7 -7
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +2 -1
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +4 -4
|
@@ -150,7 +150,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
150
150
|
if (!isUndefinedOrNull(value)) {
|
|
151
151
|
if (typeof value !== "string") {
|
|
152
152
|
throw ( new VariableError(VariableKind.Command, ( localize(
|
|
153
|
-
|
|
153
|
+
24345,
|
|
154
154
|
"Cannot substitute command variable '{0}' because command did not return a result of type string.",
|
|
155
155
|
commandId
|
|
156
156
|
))));
|
|
@@ -250,7 +250,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
250
250
|
async showUserInput(section, variable, inputInfos, variableToCommandMap) {
|
|
251
251
|
if (!inputInfos) {
|
|
252
252
|
throw ( new VariableError(VariableKind.Input, ( localize(
|
|
253
|
-
|
|
253
|
+
24346,
|
|
254
254
|
"Variable '{0}' must be defined in an '{1}' section of the debug or task configuration.",
|
|
255
255
|
variable,
|
|
256
256
|
"inputs"
|
|
@@ -260,7 +260,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
260
260
|
if (info) {
|
|
261
261
|
const missingAttribute = attrName => {
|
|
262
262
|
throw ( new VariableError(VariableKind.Input, ( localize(
|
|
263
|
-
|
|
263
|
+
24347,
|
|
264
264
|
"Input variable '{0}' is of type '{1}' and must include '{2}'.",
|
|
265
265
|
variable,
|
|
266
266
|
info.type,
|
|
@@ -318,7 +318,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
318
318
|
};
|
|
319
319
|
const topValue = variableToCommandMap?.[`input:${variable}`] ?? previousPickedValue ?? info.default;
|
|
320
320
|
if (value === info.default) {
|
|
321
|
-
item.description = ( localize(
|
|
321
|
+
item.description = ( localize(24348, "(Default)"));
|
|
322
322
|
picks.unshift(item);
|
|
323
323
|
} else if (value === topValue) {
|
|
324
324
|
picks.unshift(item);
|
|
@@ -356,7 +356,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
358
|
throw ( new VariableError(VariableKind.Input, ( localize(
|
|
359
|
-
|
|
359
|
+
24349,
|
|
360
360
|
"Cannot substitute input variable '{0}' because command '{1}' did not return a result of type string.",
|
|
361
361
|
variable,
|
|
362
362
|
info.command
|
|
@@ -365,14 +365,14 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
365
365
|
}
|
|
366
366
|
default:
|
|
367
367
|
throw ( new VariableError(VariableKind.Input, ( localize(
|
|
368
|
-
|
|
368
|
+
24350,
|
|
369
369
|
"Input variable '{0}' can only be of type 'promptString', 'pickString', or 'command'.",
|
|
370
370
|
variable
|
|
371
371
|
))));
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
throw ( new VariableError(VariableKind.Input, ( localize(
|
|
375
|
-
|
|
375
|
+
24351,
|
|
376
376
|
"Undefined input variable '{0}' encountered. Remove or define '{0}' to continue.",
|
|
377
377
|
variable
|
|
378
378
|
))));
|
|
@@ -7,7 +7,7 @@ import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs
|
|
|
7
7
|
import { BaseConfigurationResolverService } from "./baseConfigurationResolverService.js";
|
|
8
8
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
9
9
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
10
|
-
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService
|
|
10
|
+
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService";
|
|
11
11
|
export declare class ConfigurationResolverService extends BaseConfigurationResolverService {
|
|
12
12
|
constructor(editorService: IEditorService, configurationService: IConfigurationService, commandService: ICommandService, workspaceContextService: IWorkspaceContextService, quickInputService: IQuickInputService, labelService: ILabelService, pathService: IPathService, extensionService: IExtensionService, storageService: IStorageService);
|
|
13
13
|
}
|
|
@@ -11,7 +11,8 @@ import { BaseConfigurationResolverService } from './baseConfigurationResolverSer
|
|
|
11
11
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
12
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
13
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
14
|
-
import
|
|
14
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService';
|
|
15
|
+
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/platform/path/common/pathService.service';
|
|
15
16
|
|
|
16
17
|
let ConfigurationResolverService = class ConfigurationResolverService extends BaseConfigurationResolverService {
|
|
17
18
|
constructor(
|
package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js
CHANGED
|
@@ -92,8 +92,8 @@ let AbstractWorkspaceEditingService = class AbstractWorkspaceEditingService exte
|
|
|
92
92
|
availableFileSystems.unshift(Schemas.vscodeRemote);
|
|
93
93
|
}
|
|
94
94
|
let workspacePath = await this.fileDialogService.showSaveDialog({
|
|
95
|
-
saveLabel: ( localize(
|
|
96
|
-
title: ( localize(
|
|
95
|
+
saveLabel: ( localize(25284, "Save")),
|
|
96
|
+
title: ( localize(25285, "Save Workspace")),
|
|
97
97
|
filters: WORKSPACE_FILTER,
|
|
98
98
|
defaultUri: joinPath(
|
|
99
99
|
await this.fileDialogService.defaultWorkspacePath(),
|
|
@@ -323,14 +323,14 @@ let AbstractWorkspaceEditingService = class AbstractWorkspaceEditingService exte
|
|
|
323
323
|
}
|
|
324
324
|
onInvalidWorkspaceConfigurationFileError() {
|
|
325
325
|
const message = ( localize(
|
|
326
|
-
|
|
326
|
+
25286,
|
|
327
327
|
"Unable to write into workspace configuration file. Please open the file to correct errors/warnings in it and try again."
|
|
328
328
|
));
|
|
329
329
|
this.askToOpenWorkspaceConfigurationFile(message);
|
|
330
330
|
}
|
|
331
331
|
askToOpenWorkspaceConfigurationFile(message) {
|
|
332
332
|
this.notificationService.prompt(Severity.Error, message, [{
|
|
333
|
-
label: ( localize(
|
|
333
|
+
label: ( localize(25287, "Open Workspace Configuration")),
|
|
334
334
|
run: () => this.commandService.executeCommand("workbench.action.openWorkspaceConfigFile")
|
|
335
335
|
}]);
|
|
336
336
|
}
|