@codingame/monaco-vscode-debug-service-override 1.85.0 → 1.85.2
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 +4 -1
- package/package.json +3 -3
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +73 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +141 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -857
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -412
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1593
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +0 -180
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1487
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -127
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -31
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +0 -207
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +0 -13
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
-
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
3
|
-
import { normalize, isAbsolute } from 'monaco-editor/esm/vs/base/common/path.js';
|
|
4
|
-
import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
5
|
-
import { DEBUG_SCHEME } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
6
|
-
import { SIDE_GROUP, ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
7
|
-
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
8
|
-
import { isUri } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
9
|
-
|
|
10
|
-
const UNKNOWN_SOURCE_LABEL = ( nls.localizeWithPath(
|
|
11
|
-
'vs/workbench/contrib/debug/common/debugSource',
|
|
12
|
-
'unknownSource',
|
|
13
|
-
"Unknown Source"
|
|
14
|
-
));
|
|
15
|
-
class Source {
|
|
16
|
-
constructor(raw_, sessionId, uriIdentityService, logService) {
|
|
17
|
-
let path;
|
|
18
|
-
if (raw_) {
|
|
19
|
-
this.raw = raw_;
|
|
20
|
-
path = this.raw.path || this.raw.name || '';
|
|
21
|
-
this.available = true;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
this.raw = { name: UNKNOWN_SOURCE_LABEL };
|
|
25
|
-
this.available = false;
|
|
26
|
-
path = `${DEBUG_SCHEME}:${UNKNOWN_SOURCE_LABEL}`;
|
|
27
|
-
}
|
|
28
|
-
this.uri = getUriFromSource(this.raw, path, sessionId, uriIdentityService, logService);
|
|
29
|
-
}
|
|
30
|
-
get name() {
|
|
31
|
-
return this.raw.name || resources.basenameOrAuthority(this.uri);
|
|
32
|
-
}
|
|
33
|
-
get origin() {
|
|
34
|
-
return this.raw.origin;
|
|
35
|
-
}
|
|
36
|
-
get presentationHint() {
|
|
37
|
-
return this.raw.presentationHint;
|
|
38
|
-
}
|
|
39
|
-
get reference() {
|
|
40
|
-
return this.raw.sourceReference;
|
|
41
|
-
}
|
|
42
|
-
get inMemory() {
|
|
43
|
-
return this.uri.scheme === DEBUG_SCHEME;
|
|
44
|
-
}
|
|
45
|
-
openInEditor(editorService, selection, preserveFocus, sideBySide, pinned) {
|
|
46
|
-
return !this.available ? Promise.resolve(undefined) : editorService.openEditor({
|
|
47
|
-
resource: this.uri,
|
|
48
|
-
description: this.origin,
|
|
49
|
-
options: {
|
|
50
|
-
preserveFocus,
|
|
51
|
-
selection,
|
|
52
|
-
revealIfOpened: true,
|
|
53
|
-
selectionRevealType: 1 ,
|
|
54
|
-
pinned
|
|
55
|
-
}
|
|
56
|
-
}, sideBySide ? SIDE_GROUP : ACTIVE_GROUP);
|
|
57
|
-
}
|
|
58
|
-
static getEncodedDebugData(modelUri) {
|
|
59
|
-
let path;
|
|
60
|
-
let sourceReference;
|
|
61
|
-
let sessionId;
|
|
62
|
-
switch (modelUri.scheme) {
|
|
63
|
-
case Schemas.file:
|
|
64
|
-
path = normalize(modelUri.fsPath);
|
|
65
|
-
break;
|
|
66
|
-
case DEBUG_SCHEME:
|
|
67
|
-
path = modelUri.path;
|
|
68
|
-
if (modelUri.query) {
|
|
69
|
-
const keyvalues = modelUri.query.split('&');
|
|
70
|
-
for (const keyvalue of keyvalues) {
|
|
71
|
-
const pair = keyvalue.split('=');
|
|
72
|
-
if (pair.length === 2) {
|
|
73
|
-
switch (pair[0]) {
|
|
74
|
-
case 'session':
|
|
75
|
-
sessionId = pair[1];
|
|
76
|
-
break;
|
|
77
|
-
case 'ref':
|
|
78
|
-
sourceReference = parseInt(pair[1]);
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
break;
|
|
85
|
-
default:
|
|
86
|
-
path = ( modelUri.toString());
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
return {
|
|
90
|
-
name: resources.basenameOrAuthority(modelUri),
|
|
91
|
-
path,
|
|
92
|
-
sourceReference,
|
|
93
|
-
sessionId
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function getUriFromSource(raw, path, sessionId, uriIdentityService, logService) {
|
|
98
|
-
const _getUriFromSource = (path) => {
|
|
99
|
-
if (typeof raw.sourceReference === 'number' && raw.sourceReference > 0) {
|
|
100
|
-
return ( URI.from({
|
|
101
|
-
scheme: DEBUG_SCHEME,
|
|
102
|
-
path,
|
|
103
|
-
query: `session=${sessionId}&ref=${raw.sourceReference}`
|
|
104
|
-
}));
|
|
105
|
-
}
|
|
106
|
-
if (path && isUri(path)) {
|
|
107
|
-
return uriIdentityService.asCanonicalUri(( URI.parse(path)));
|
|
108
|
-
}
|
|
109
|
-
if (path && isAbsolute(path)) {
|
|
110
|
-
return uriIdentityService.asCanonicalUri(URI.file(path));
|
|
111
|
-
}
|
|
112
|
-
return uriIdentityService.asCanonicalUri(( URI.from({
|
|
113
|
-
scheme: DEBUG_SCHEME,
|
|
114
|
-
path,
|
|
115
|
-
query: `session=${sessionId}`
|
|
116
|
-
})));
|
|
117
|
-
};
|
|
118
|
-
try {
|
|
119
|
-
return _getUriFromSource(path);
|
|
120
|
-
}
|
|
121
|
-
catch (err) {
|
|
122
|
-
logService.error('Invalid path from debug adapter: ' + path);
|
|
123
|
-
return _getUriFromSource('/invalidDebugSource');
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export { Source, UNKNOWN_SOURCE_LABEL, getUriFromSource };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
2
|
-
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
|
-
|
|
4
|
-
class DisassemblyViewInput extends EditorInput {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.resource = undefined;
|
|
8
|
-
}
|
|
9
|
-
static { this.ID = 'debug.disassemblyView.input'; }
|
|
10
|
-
get typeId() {
|
|
11
|
-
return DisassemblyViewInput.ID;
|
|
12
|
-
}
|
|
13
|
-
static get instance() {
|
|
14
|
-
if (!DisassemblyViewInput._instance || DisassemblyViewInput._instance.isDisposed()) {
|
|
15
|
-
DisassemblyViewInput._instance = ( new DisassemblyViewInput());
|
|
16
|
-
}
|
|
17
|
-
return DisassemblyViewInput._instance;
|
|
18
|
-
}
|
|
19
|
-
getName() {
|
|
20
|
-
return ( localizeWithPath(
|
|
21
|
-
'vs/workbench/contrib/debug/common/disassemblyViewInput',
|
|
22
|
-
'disassemblyInputName',
|
|
23
|
-
"Disassembly"
|
|
24
|
-
));
|
|
25
|
-
}
|
|
26
|
-
matches(other) {
|
|
27
|
-
return other instanceof DisassemblyViewInput;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { DisassemblyViewInput };
|
package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js
DELETED
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
-
|
|
3
|
-
const idDescription = ( nls.localizeWithPath(
|
|
4
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
5
|
-
'JsonSchema.input.id',
|
|
6
|
-
"The input's id is used to associate an input with a variable of the form ${input:id}."
|
|
7
|
-
));
|
|
8
|
-
const typeDescription = ( nls.localizeWithPath(
|
|
9
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
10
|
-
'JsonSchema.input.type',
|
|
11
|
-
"The type of user input prompt to use."
|
|
12
|
-
));
|
|
13
|
-
const descriptionDescription = ( nls.localizeWithPath(
|
|
14
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
15
|
-
'JsonSchema.input.description',
|
|
16
|
-
"The description is shown when the user is prompted for input."
|
|
17
|
-
));
|
|
18
|
-
const defaultDescription = ( nls.localizeWithPath(
|
|
19
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
20
|
-
'JsonSchema.input.default',
|
|
21
|
-
"The default value for the input."
|
|
22
|
-
));
|
|
23
|
-
const inputsSchema = {
|
|
24
|
-
definitions: {
|
|
25
|
-
inputs: {
|
|
26
|
-
type: 'array',
|
|
27
|
-
description: ( nls.localizeWithPath(
|
|
28
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
29
|
-
'JsonSchema.inputs',
|
|
30
|
-
'User inputs. Used for defining user input prompts, such as free string input or a choice from several options.'
|
|
31
|
-
)),
|
|
32
|
-
items: {
|
|
33
|
-
oneOf: [
|
|
34
|
-
{
|
|
35
|
-
type: 'object',
|
|
36
|
-
required: ['id', 'type', 'description'],
|
|
37
|
-
additionalProperties: false,
|
|
38
|
-
properties: {
|
|
39
|
-
id: {
|
|
40
|
-
type: 'string',
|
|
41
|
-
description: idDescription
|
|
42
|
-
},
|
|
43
|
-
type: {
|
|
44
|
-
type: 'string',
|
|
45
|
-
description: typeDescription,
|
|
46
|
-
enum: ['promptString'],
|
|
47
|
-
enumDescriptions: [
|
|
48
|
-
( nls.localizeWithPath(
|
|
49
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
50
|
-
'JsonSchema.input.type.promptString',
|
|
51
|
-
"The 'promptString' type opens an input box to ask the user for input."
|
|
52
|
-
)),
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
description: {
|
|
56
|
-
type: 'string',
|
|
57
|
-
description: descriptionDescription
|
|
58
|
-
},
|
|
59
|
-
default: {
|
|
60
|
-
type: 'string',
|
|
61
|
-
description: defaultDescription
|
|
62
|
-
},
|
|
63
|
-
password: {
|
|
64
|
-
type: 'boolean',
|
|
65
|
-
description: ( nls.localizeWithPath(
|
|
66
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
67
|
-
'JsonSchema.input.password',
|
|
68
|
-
"Controls if a password input is shown. Password input hides the typed text."
|
|
69
|
-
)),
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
type: 'object',
|
|
75
|
-
required: ['id', 'type', 'description', 'options'],
|
|
76
|
-
additionalProperties: false,
|
|
77
|
-
properties: {
|
|
78
|
-
id: {
|
|
79
|
-
type: 'string',
|
|
80
|
-
description: idDescription
|
|
81
|
-
},
|
|
82
|
-
type: {
|
|
83
|
-
type: 'string',
|
|
84
|
-
description: typeDescription,
|
|
85
|
-
enum: ['pickString'],
|
|
86
|
-
enumDescriptions: [
|
|
87
|
-
( nls.localizeWithPath(
|
|
88
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
89
|
-
'JsonSchema.input.type.pickString',
|
|
90
|
-
"The 'pickString' type shows a selection list."
|
|
91
|
-
)),
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
description: {
|
|
95
|
-
type: 'string',
|
|
96
|
-
description: descriptionDescription
|
|
97
|
-
},
|
|
98
|
-
default: {
|
|
99
|
-
type: 'string',
|
|
100
|
-
description: defaultDescription
|
|
101
|
-
},
|
|
102
|
-
options: {
|
|
103
|
-
type: 'array',
|
|
104
|
-
description: ( nls.localizeWithPath(
|
|
105
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
106
|
-
'JsonSchema.input.options',
|
|
107
|
-
"An array of strings that defines the options for a quick pick."
|
|
108
|
-
)),
|
|
109
|
-
items: {
|
|
110
|
-
oneOf: [
|
|
111
|
-
{
|
|
112
|
-
type: 'string'
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
type: 'object',
|
|
116
|
-
required: ['value'],
|
|
117
|
-
additionalProperties: false,
|
|
118
|
-
properties: {
|
|
119
|
-
label: {
|
|
120
|
-
type: 'string',
|
|
121
|
-
description: ( nls.localizeWithPath(
|
|
122
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
123
|
-
'JsonSchema.input.pickString.optionLabel',
|
|
124
|
-
"Label for the option."
|
|
125
|
-
))
|
|
126
|
-
},
|
|
127
|
-
value: {
|
|
128
|
-
type: 'string',
|
|
129
|
-
description: ( nls.localizeWithPath(
|
|
130
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
131
|
-
'JsonSchema.input.pickString.optionValue',
|
|
132
|
-
"Value for the option."
|
|
133
|
-
))
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
type: 'object',
|
|
144
|
-
required: ['id', 'type', 'command'],
|
|
145
|
-
additionalProperties: false,
|
|
146
|
-
properties: {
|
|
147
|
-
id: {
|
|
148
|
-
type: 'string',
|
|
149
|
-
description: idDescription
|
|
150
|
-
},
|
|
151
|
-
type: {
|
|
152
|
-
type: 'string',
|
|
153
|
-
description: typeDescription,
|
|
154
|
-
enum: ['command'],
|
|
155
|
-
enumDescriptions: [
|
|
156
|
-
( nls.localizeWithPath(
|
|
157
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
158
|
-
'JsonSchema.input.type.command',
|
|
159
|
-
"The 'command' type executes a command."
|
|
160
|
-
)),
|
|
161
|
-
]
|
|
162
|
-
},
|
|
163
|
-
command: {
|
|
164
|
-
type: 'string',
|
|
165
|
-
description: ( nls.localizeWithPath(
|
|
166
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
167
|
-
'JsonSchema.input.command.command',
|
|
168
|
-
"The command to execute for this input variable."
|
|
169
|
-
))
|
|
170
|
-
},
|
|
171
|
-
args: {
|
|
172
|
-
oneOf: [
|
|
173
|
-
{
|
|
174
|
-
type: 'object',
|
|
175
|
-
description: ( nls.localizeWithPath(
|
|
176
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
177
|
-
'JsonSchema.input.command.args',
|
|
178
|
-
"Optional arguments passed to the command."
|
|
179
|
-
))
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
type: 'array',
|
|
183
|
-
description: ( nls.localizeWithPath(
|
|
184
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
185
|
-
'JsonSchema.input.command.args',
|
|
186
|
-
"Optional arguments passed to the command."
|
|
187
|
-
))
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
type: 'string',
|
|
191
|
-
description: ( nls.localizeWithPath(
|
|
192
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverSchema',
|
|
193
|
-
'JsonSchema.input.command.args',
|
|
194
|
-
"Optional arguments passed to the command."
|
|
195
|
-
))
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
export { inputsSchema };
|
package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
-
|
|
3
|
-
function applyDeprecatedVariableMessage(schema) {
|
|
4
|
-
schema.pattern = schema.pattern || '^(?!.*\\$\\{(env|config|command)\\.)';
|
|
5
|
-
schema.patternErrorMessage = schema.patternErrorMessage ||
|
|
6
|
-
( nls.localizeWithPath(
|
|
7
|
-
'vs/workbench/services/configurationResolver/common/configurationResolverUtils',
|
|
8
|
-
'deprecatedVariables',
|
|
9
|
-
"'env.', 'config.' and 'command.' are deprecated, use 'env:', 'config:' and 'command:' instead."
|
|
10
|
-
));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { applyDeprecatedVariableMessage };
|