@codingame/monaco-vscode-debug-service-override 1.85.6 → 2.0.0-v2.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/debug.js +3 -3
- package/package.json +5 -5
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +97 -97
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +28 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +30 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +36 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +41 -41
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +26 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +28 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +37 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +28 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +19 -19
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +30 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +42 -42
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +19 -19
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +6 -6
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +20 -20
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +5 -5
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -45
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Queue } from '
|
|
2
|
-
import { Schemas } from '
|
|
3
|
-
import
|
|
4
|
-
import { isCodeEditor, isDiffEditor } from '
|
|
5
|
-
import
|
|
1
|
+
import { Queue } from 'vscode/vscode/vs/base/common/async';
|
|
2
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
3
|
+
import { isUndefinedOrNull, isString } from 'vscode/vscode/vs/base/common/types';
|
|
4
|
+
import { isCodeEditor, isDiffEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
5
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
6
|
import { EditorResourceAccessor, SideBySideEditor } from 'vscode/vscode/vs/workbench/common/editor';
|
|
7
7
|
import { AbstractVariableResolverService } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/variableResolver';
|
|
8
8
|
|
|
@@ -164,8 +164,8 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
164
164
|
case 'command': {
|
|
165
165
|
const commandId = (variableToCommandMap ? variableToCommandMap[name] : undefined) || name;
|
|
166
166
|
result = await this.commandService.executeCommand(commandId, configuration);
|
|
167
|
-
if (typeof result !== 'string' && !
|
|
168
|
-
throw new Error(
|
|
167
|
+
if (typeof result !== 'string' && !isUndefinedOrNull(result)) {
|
|
168
|
+
throw new Error(localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'commandVariable.noStringType', "Cannot substitute command variable '{0}' because command did not return a result of type string.", commandId));
|
|
169
169
|
}
|
|
170
170
|
break;
|
|
171
171
|
}
|
|
@@ -213,7 +213,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
213
213
|
}
|
|
214
214
|
showUserInput(variable, inputInfos) {
|
|
215
215
|
if (!inputInfos) {
|
|
216
|
-
return Promise.reject(( new Error((
|
|
216
|
+
return Promise.reject(( new Error(( localizeWithPath(
|
|
217
217
|
'vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService',
|
|
218
218
|
'inputVariable.noInputSection',
|
|
219
219
|
"Variable '{0}' must be defined in an '{1}' section of the debug or task configuration.",
|
|
@@ -224,11 +224,11 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
224
224
|
const info = inputInfos.filter(item => item.id === variable).pop();
|
|
225
225
|
if (info) {
|
|
226
226
|
const missingAttribute = (attrName) => {
|
|
227
|
-
throw new Error(
|
|
227
|
+
throw new Error(localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.missingAttribute', "Input variable '{0}' is of type '{1}' and must include '{2}'.", variable, info.type, attrName));
|
|
228
228
|
};
|
|
229
229
|
switch (info.type) {
|
|
230
230
|
case 'promptString': {
|
|
231
|
-
if (!
|
|
231
|
+
if (!isString(info.description)) {
|
|
232
232
|
missingAttribute('description');
|
|
233
233
|
}
|
|
234
234
|
const inputOptions = { prompt: info.description, ignoreFocusLost: true };
|
|
@@ -243,12 +243,12 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
245
|
case 'pickString': {
|
|
246
|
-
if (!
|
|
246
|
+
if (!isString(info.description)) {
|
|
247
247
|
missingAttribute('description');
|
|
248
248
|
}
|
|
249
249
|
if (Array.isArray(info.options)) {
|
|
250
250
|
for (const pickOption of info.options) {
|
|
251
|
-
if (!
|
|
251
|
+
if (!isString(pickOption) && !isString(pickOption.value)) {
|
|
252
252
|
missingAttribute('value');
|
|
253
253
|
}
|
|
254
254
|
}
|
|
@@ -258,14 +258,14 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
258
258
|
}
|
|
259
259
|
const picks = ( new Array());
|
|
260
260
|
for (const pickOption of info.options) {
|
|
261
|
-
const value =
|
|
262
|
-
const label =
|
|
261
|
+
const value = isString(pickOption) ? pickOption : pickOption.value;
|
|
262
|
+
const label = isString(pickOption) ? undefined : pickOption.label;
|
|
263
263
|
const item = {
|
|
264
264
|
label: label ? `${label}: ${value}` : value,
|
|
265
265
|
value: value
|
|
266
266
|
};
|
|
267
267
|
if (value === info.default) {
|
|
268
|
-
item.description = (
|
|
268
|
+
item.description = ( localizeWithPath(
|
|
269
269
|
'vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService',
|
|
270
270
|
'inputVariable.defaultInputValue',
|
|
271
271
|
"(Default)"
|
|
@@ -285,21 +285,21 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
|
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
case 'command': {
|
|
288
|
-
if (!
|
|
288
|
+
if (!isString(info.command)) {
|
|
289
289
|
missingAttribute('command');
|
|
290
290
|
}
|
|
291
291
|
return this.userInputAccessQueue.queue(() => this.commandService.executeCommand(info.command, info.args)).then(result => {
|
|
292
|
-
if (typeof result === 'string' ||
|
|
292
|
+
if (typeof result === 'string' || isUndefinedOrNull(result)) {
|
|
293
293
|
return result;
|
|
294
294
|
}
|
|
295
|
-
throw new Error(
|
|
295
|
+
throw new Error(localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.command.noStringType', "Cannot substitute input variable '{0}' because command '{1}' did not return a result of type string.", variable, info.command));
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
default:
|
|
299
|
-
throw new Error(
|
|
299
|
+
throw new Error(localizeWithPath('vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService', 'inputVariable.unknownType', "Input variable '{0}' can only be of type 'promptString', 'pickString', or 'command'.", variable));
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
return Promise.reject(( new Error((
|
|
302
|
+
return Promise.reject(( new Error(( localizeWithPath(
|
|
303
303
|
'vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService',
|
|
304
304
|
'inputVariable.undefinedVariable',
|
|
305
305
|
"Undefined input variable '{0}' encountered. Remove or define '{0}' to continue.",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { ICommandService } from '
|
|
3
|
-
import { IConfigurationService } from '
|
|
4
|
-
import { ILabelService } from '
|
|
5
|
-
import { IQuickInputService } from '
|
|
6
|
-
import { IWorkspaceContextService } from '
|
|
2
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
3
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
4
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
5
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
6
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
7
7
|
import { BaseConfigurationResolverService } from './baseConfigurationResolverService.js';
|
|
8
8
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
9
9
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { LanguageFeatureRegistry } from 'monaco-editor/esm/vs/editor/common/languageFeatureRegistry.js';
|
|
2
|
-
|
|
3
|
-
class LanguageFeaturesService {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.referenceProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
6
|
-
this.renameProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
7
|
-
this.codeActionProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
8
|
-
this.definitionProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
9
|
-
this.typeDefinitionProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
10
|
-
this.declarationProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
11
|
-
this.implementationProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
12
|
-
this.documentSymbolProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
13
|
-
this.inlayHintsProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
14
|
-
this.colorProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
15
|
-
this.codeLensProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
16
|
-
this.documentFormattingEditProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
17
|
-
this.documentRangeFormattingEditProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
18
|
-
this.onTypeFormattingEditProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
19
|
-
this.signatureHelpProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
20
|
-
this.hoverProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
21
|
-
this.documentHighlightProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
22
|
-
this.multiDocumentHighlightProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
23
|
-
this.selectionRangeProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
24
|
-
this.foldingRangeProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
25
|
-
this.linkProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
26
|
-
this.inlineCompletionsProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
27
|
-
this.completionProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
28
|
-
this.linkedEditingRangeProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
29
|
-
this.inlineValuesProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
30
|
-
this.evaluatableExpressionProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
31
|
-
this.documentRangeSemanticTokensProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
32
|
-
this.documentSemanticTokensProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
33
|
-
this.documentOnDropEditProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
34
|
-
this.documentPasteEditProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
35
|
-
this.mappedEditsProvider = ( new LanguageFeatureRegistry(this._score.bind(this)));
|
|
36
|
-
}
|
|
37
|
-
setNotebookTypeResolver(resolver) {
|
|
38
|
-
this._notebookTypeResolver = resolver;
|
|
39
|
-
}
|
|
40
|
-
_score(uri) {
|
|
41
|
-
return this._notebookTypeResolver?.(uri);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { LanguageFeaturesService };
|