@codingame/monaco-vscode-debug-service-override 1.85.0 → 1.85.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.
Files changed (28) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
  3. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +1 -1
  4. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +4 -4
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +2 -2
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +2 -2
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +1 -1
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +1 -1
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +2 -2
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +2 -2
  11. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +3 -3
  12. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +1 -1
  13. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +1 -1
  14. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +1 -1
  15. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +1 -1
  16. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +1 -1
  18. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +1 -1
  19. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  20. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -857
  21. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -412
  22. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1593
  23. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +0 -180
  24. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -6
  25. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +0 -6
  26. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1487
  27. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -127
  28. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -31
@@ -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 };