@theia/debug 1.19.0 → 1.21.0-next.14

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 (107) hide show
  1. package/lib/browser/console/debug-console-contribution.d.ts +0 -1
  2. package/lib/browser/console/debug-console-contribution.d.ts.map +1 -1
  3. package/lib/browser/console/debug-console-contribution.js +3 -4
  4. package/lib/browser/console/debug-console-contribution.js.map +1 -1
  5. package/lib/browser/console/debug-console-session.js +2 -2
  6. package/lib/browser/console/debug-console-session.js.map +1 -1
  7. package/lib/browser/debug-frontend-application-contribution.d.ts +1 -1
  8. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
  9. package/lib/browser/debug-frontend-application-contribution.js +82 -81
  10. package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
  11. package/lib/browser/debug-preferences.js +7 -7
  12. package/lib/browser/debug-preferences.js.map +1 -1
  13. package/lib/browser/debug-prefix-configuration.d.ts.map +1 -1
  14. package/lib/browser/debug-prefix-configuration.js +2 -2
  15. package/lib/browser/debug-prefix-configuration.js.map +1 -1
  16. package/lib/browser/debug-session-connection.d.ts +22 -17
  17. package/lib/browser/debug-session-connection.d.ts.map +1 -1
  18. package/lib/browser/debug-session-connection.js +86 -65
  19. package/lib/browser/debug-session-connection.js.map +1 -1
  20. package/lib/browser/debug-session-contribution.d.ts.map +1 -1
  21. package/lib/browser/debug-session-contribution.js.map +1 -1
  22. package/lib/browser/debug-session-manager.d.ts +6 -14
  23. package/lib/browser/debug-session-manager.d.ts.map +1 -1
  24. package/lib/browser/debug-session-manager.js +41 -44
  25. package/lib/browser/debug-session-manager.js.map +1 -1
  26. package/lib/browser/debug-session.d.ts +9 -8
  27. package/lib/browser/debug-session.d.ts.map +1 -1
  28. package/lib/browser/debug-session.js +55 -58
  29. package/lib/browser/debug-session.js.map +1 -1
  30. package/lib/browser/model/debug-function-breakpoint.d.ts.map +1 -1
  31. package/lib/browser/model/debug-function-breakpoint.js +4 -3
  32. package/lib/browser/model/debug-function-breakpoint.js.map +1 -1
  33. package/lib/browser/preferences/launch-preferences.d.ts.map +1 -1
  34. package/lib/browser/preferences/launch-preferences.js +1 -1
  35. package/lib/browser/preferences/launch-preferences.js.map +1 -1
  36. package/lib/browser/view/debug-breakpoints-widget.js +1 -1
  37. package/lib/browser/view/debug-breakpoints-widget.js.map +1 -1
  38. package/lib/browser/view/debug-configuration-widget.js +5 -5
  39. package/lib/browser/view/debug-configuration-widget.js.map +1 -1
  40. package/lib/browser/view/debug-stack-frames-widget.js +1 -1
  41. package/lib/browser/view/debug-stack-frames-widget.js.map +1 -1
  42. package/lib/browser/view/debug-toolbar-widget.js +8 -8
  43. package/lib/browser/view/debug-toolbar-widget.js.map +1 -1
  44. package/lib/browser/view/debug-variables-widget.js +1 -1
  45. package/lib/browser/view/debug-variables-widget.js.map +1 -1
  46. package/lib/browser/view/debug-view-model.js +3 -3
  47. package/lib/browser/view/debug-view-model.js.map +1 -1
  48. package/lib/browser/view/debug-watch-widget.js +1 -1
  49. package/lib/browser/view/debug-watch-widget.js.map +1 -1
  50. package/lib/browser/view/debug-widget.d.ts.map +1 -1
  51. package/lib/browser/view/debug-widget.js +1 -1
  52. package/lib/browser/view/debug-widget.js.map +1 -1
  53. package/lib/common/debug-service.d.ts +10 -0
  54. package/lib/common/debug-service.d.ts.map +1 -1
  55. package/lib/node/debug-adapter-factory.d.ts +4 -4
  56. package/lib/node/debug-adapter-factory.d.ts.map +1 -1
  57. package/lib/node/debug-adapter-factory.js +8 -8
  58. package/lib/node/debug-adapter-factory.js.map +1 -1
  59. package/lib/node/debug-adapter-session-manager.d.ts.map +1 -1
  60. package/lib/node/debug-adapter-session-manager.js +0 -1
  61. package/lib/node/debug-adapter-session-manager.js.map +1 -1
  62. package/lib/node/debug-adapter-session.d.ts +7 -7
  63. package/lib/node/debug-adapter-session.d.ts.map +1 -1
  64. package/lib/node/debug-adapter-session.js +25 -24
  65. package/lib/node/debug-adapter-session.js.map +1 -1
  66. package/lib/node/debug-model.d.ts +32 -15
  67. package/lib/node/debug-model.d.ts.map +1 -1
  68. package/lib/node/debug-model.js.map +1 -1
  69. package/lib/node/{inline-communication-provider.d.ts → inline-debug-adapter.d.ts} +6 -5
  70. package/lib/node/inline-debug-adapter.d.ts.map +1 -0
  71. package/lib/node/{inline-communication-provider.js → inline-debug-adapter.js} +8 -6
  72. package/lib/node/inline-debug-adapter.js.map +1 -0
  73. package/lib/node/{stream-communication-provider.d.ts → stream-debug-adapter.d.ts} +17 -3
  74. package/lib/node/stream-debug-adapter.d.ts.map +1 -0
  75. package/lib/node/{stream-communication-provider.js → stream-debug-adapter.js} +38 -13
  76. package/lib/node/stream-debug-adapter.js.map +1 -0
  77. package/package.json +17 -17
  78. package/src/browser/console/debug-console-contribution.tsx +3 -4
  79. package/src/browser/console/debug-console-session.ts +2 -2
  80. package/src/browser/debug-frontend-application-contribution.ts +82 -81
  81. package/src/browser/debug-preferences.ts +7 -7
  82. package/src/browser/debug-prefix-configuration.ts +3 -3
  83. package/src/browser/debug-session-connection.ts +101 -75
  84. package/src/browser/debug-session-contribution.ts +2 -3
  85. package/src/browser/debug-session-manager.ts +45 -47
  86. package/src/browser/debug-session.tsx +54 -57
  87. package/src/browser/model/debug-function-breakpoint.tsx +4 -3
  88. package/src/browser/preferences/launch-preferences.ts +1 -4
  89. package/src/browser/view/debug-breakpoints-widget.ts +1 -1
  90. package/src/browser/view/debug-configuration-widget.tsx +5 -5
  91. package/src/browser/view/debug-stack-frames-widget.ts +1 -1
  92. package/src/browser/view/debug-toolbar-widget.tsx +8 -8
  93. package/src/browser/view/debug-variables-widget.ts +1 -1
  94. package/src/browser/view/debug-view-model.ts +3 -3
  95. package/src/browser/view/debug-watch-widget.ts +1 -1
  96. package/src/browser/view/debug-widget.ts +1 -1
  97. package/src/common/debug-service.ts +13 -0
  98. package/src/node/debug-adapter-factory.ts +13 -12
  99. package/src/node/debug-adapter-session-manager.ts +0 -1
  100. package/src/node/debug-adapter-session.ts +29 -28
  101. package/src/node/debug-model.ts +33 -15
  102. package/src/node/{inline-communication-provider.ts → inline-debug-adapter.ts} +7 -4
  103. package/src/node/{stream-communication-provider.ts → stream-debug-adapter.ts} +42 -9
  104. package/lib/node/inline-communication-provider.d.ts.map +0 -1
  105. package/lib/node/inline-communication-provider.js.map +0 -1
  106. package/lib/node/stream-communication-provider.d.ts.map +0 -1
  107. package/lib/node/stream-communication-provider.js.map +0 -1
@@ -16,9 +16,11 @@
16
16
  /// <reference types="node" />
17
17
  import { DisposableCollection } from '@theia/core/lib/common/disposable';
18
18
  import { Event } from '@theia/core/lib/common/event';
19
+ import { ChildProcess } from 'child_process';
19
20
  import * as stream from 'stream';
20
- import { CommunicationProvider } from './debug-model';
21
- export declare class StreamCommunicationProvider extends DisposableCollection implements CommunicationProvider {
21
+ import * as net from 'net';
22
+ import { DebugAdapter } from './debug-model';
23
+ declare abstract class StreamDebugAdapter extends DisposableCollection {
22
24
  private fromAdapter;
23
25
  private toAdapter;
24
26
  private messageReceivedEmitter;
@@ -32,7 +34,19 @@ export declare class StreamCommunicationProvider extends DisposableCollection im
32
34
  private contentLength;
33
35
  private buffer;
34
36
  constructor(fromAdapter: stream.Readable, toAdapter: stream.Writable);
37
+ handleClosed(): void;
35
38
  send(message: string): void;
36
39
  protected handleData(data: Buffer): void;
37
40
  }
38
- //# sourceMappingURL=stream-communication-provider.d.ts.map
41
+ export declare class ProcessDebugAdapter extends StreamDebugAdapter implements DebugAdapter {
42
+ protected readonly process: ChildProcess;
43
+ constructor(process: ChildProcess);
44
+ stop(): Promise<void>;
45
+ }
46
+ export declare class SocketDebugAdapter extends StreamDebugAdapter implements DebugAdapter {
47
+ private readonly socket;
48
+ constructor(socket: net.Socket);
49
+ stop(): Promise<void>;
50
+ }
51
+ export {};
52
+ //# sourceMappingURL=stream-debug-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/node/stream-debug-ad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ED,qBAAa,kBAAmB,SAAQ,kBAAmB,YAAW,YAAY;IAC9E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;gBACxB,MAAM,EAAE,GAAG,CAAC,MAAM;IAK9B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAKxB"}
@@ -15,10 +15,10 @@
15
15
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
16
  ********************************************************************************/
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.StreamCommunicationProvider = void 0;
18
+ exports.SocketDebugAdapter = exports.ProcessDebugAdapter = void 0;
19
19
  const disposable_1 = require("@theia/core/lib/common/disposable");
20
20
  const event_1 = require("@theia/core/lib/common/event");
21
- class StreamCommunicationProvider extends disposable_1.DisposableCollection {
21
+ class StreamDebugAdapter extends disposable_1.DisposableCollection {
22
22
  constructor(fromAdapter, toAdapter) {
23
23
  super();
24
24
  this.fromAdapter = fromAdapter;
@@ -32,13 +32,15 @@ class StreamCommunicationProvider extends disposable_1.DisposableCollection {
32
32
  this.contentLength = -1;
33
33
  this.buffer = Buffer.alloc(0);
34
34
  this.fromAdapter.on('data', (data) => this.handleData(data));
35
- this.fromAdapter.on('close', () => this.closeEmitter.fire()); // FIXME pass a proper exit code
35
+ this.fromAdapter.on('close', () => this.handleClosed()); // FIXME pass a proper exit code
36
36
  this.fromAdapter.on('error', error => this.errorEmitter.fire(error));
37
37
  this.toAdapter.on('error', error => this.errorEmitter.fire(error));
38
38
  }
39
- ;
39
+ handleClosed() {
40
+ this.closeEmitter.fire();
41
+ }
40
42
  send(message) {
41
- const msg = `${StreamCommunicationProvider.CONTENT_LENGTH}: ${Buffer.byteLength(message, 'utf8')}${StreamCommunicationProvider.TWO_CRLF}${message}`;
43
+ const msg = `${StreamDebugAdapter.CONTENT_LENGTH}: ${Buffer.byteLength(message, 'utf8')}${StreamDebugAdapter.TWO_CRLF}${message}`;
42
44
  this.toAdapter.write(msg, 'utf8');
43
45
  }
44
46
  handleData(data) {
@@ -56,24 +58,24 @@ class StreamCommunicationProvider extends disposable_1.DisposableCollection {
56
58
  }
57
59
  }
58
60
  else {
59
- let idx = this.buffer.indexOf(StreamCommunicationProvider.CONTENT_LENGTH);
61
+ let idx = this.buffer.indexOf(StreamDebugAdapter.CONTENT_LENGTH);
60
62
  if (idx > 0) {
61
63
  // log unrecognized output
62
64
  const output = this.buffer.slice(0, idx);
63
65
  console.log(output.toString('utf-8'));
64
66
  this.buffer = this.buffer.slice(idx);
65
67
  }
66
- idx = this.buffer.indexOf(StreamCommunicationProvider.TWO_CRLF);
68
+ idx = this.buffer.indexOf(StreamDebugAdapter.TWO_CRLF);
67
69
  if (idx !== -1) {
68
70
  const header = this.buffer.toString('utf8', 0, idx);
69
71
  const lines = header.split('\r\n');
70
72
  for (let i = 0; i < lines.length; i++) {
71
73
  const pair = lines[i].split(/: +/);
72
- if (pair[0] === StreamCommunicationProvider.CONTENT_LENGTH) {
74
+ if (pair[0] === StreamDebugAdapter.CONTENT_LENGTH) {
73
75
  this.contentLength = +pair[1];
74
76
  }
75
77
  }
76
- this.buffer = this.buffer.slice(idx + StreamCommunicationProvider.TWO_CRLF.length);
78
+ this.buffer = this.buffer.slice(idx + StreamDebugAdapter.TWO_CRLF.length);
77
79
  continue;
78
80
  }
79
81
  }
@@ -81,8 +83,31 @@ class StreamCommunicationProvider extends disposable_1.DisposableCollection {
81
83
  }
82
84
  }
83
85
  }
84
- exports.StreamCommunicationProvider = StreamCommunicationProvider;
85
86
  // these constants are for the message header, see: https://microsoft.github.io/debug-adapter-protocol/overview#header-part
86
- StreamCommunicationProvider.TWO_CRLF = '\r\n\r\n';
87
- StreamCommunicationProvider.CONTENT_LENGTH = 'Content-Length';
88
- //# sourceMappingURL=stream-communication-provider.js.map
87
+ StreamDebugAdapter.TWO_CRLF = '\r\n\r\n';
88
+ StreamDebugAdapter.CONTENT_LENGTH = 'Content-Length';
89
+ class ProcessDebugAdapter extends StreamDebugAdapter {
90
+ constructor(process) {
91
+ super(process.stdout, process.stdin);
92
+ this.process = process;
93
+ }
94
+ async stop() {
95
+ var _a;
96
+ this.process.kill();
97
+ (_a = this.process.stdin) === null || _a === void 0 ? void 0 : _a.end();
98
+ }
99
+ }
100
+ exports.ProcessDebugAdapter = ProcessDebugAdapter;
101
+ class SocketDebugAdapter extends StreamDebugAdapter {
102
+ constructor(socket) {
103
+ super(socket, socket);
104
+ this.socket = socket;
105
+ }
106
+ stop() {
107
+ return new Promise(resolve => {
108
+ this.socket.end(() => resolve());
109
+ });
110
+ }
111
+ }
112
+ exports.SocketDebugAdapter = SocketDebugAdapter;
113
+ //# sourceMappingURL=stream-debug-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-debug-adapter.js","sourceRoot":"","sources":["../../src/node/stream-debug-adapter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,kEAAyE;AACzE,wDAA8D;AAM9D,MAAe,kBAAmB,SAAQ,iCAAoB;IAc1D,YAAoB,WAA4B,EAAU,SAA0B;QAChF,KAAK,EAAE,CAAC;QADQ,gBAAW,GAAX,WAAW,CAAiB;QAAU,cAAS,GAAT,SAAS,CAAiB;QAb5E,2BAAsB,GAAG,IAAI,eAAO,EAAU,CAAC;QACvD,sBAAiB,GAAkB,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC;QAC7D,iBAAY,GAAG,IAAI,eAAO,EAAS,CAAC;QAC5C,YAAO,GAAiB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;QACxC,iBAAY,GAAG,IAAI,eAAO,EAAQ,CAAC;QAC3C,YAAO,GAAgB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;QAKvC,kBAAa,GAAW,CAAC,CAAC,CAAC;QAC3B,WAAM,GAAW,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAKrC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE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AAC,cAAc,EAAE;4BAC/C,IAAI,CAAC,aAAa,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;yBACjC;qBACJ;oBACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBAC1E,SAAS;iBACZ;aACJ;YACD,MAAM;SACT;IACL,CAAC;;AAlED,2HAA2H;AAC5G,2BAAQ,GAAG,UAAU,CAAC;AACtB,iCAAc,GAAG,gBAAgB,CAAC;AAmErD,MAAa,mBAAoB,SAAQ,kBAAkB;IAEvD,YAAY,OAAqB;QAC7B,KAAK,CAAC,OAAO,CAAC,MAAO,EAAE,OAAO,CAAC,KAAM,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,IAAI;;QACN,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,MAAA,IAAI,CAAC,OAAO,CAAC,KAAK,0CAAE,GAAG,GAAG;IAC9B,CAAC;CACJ;AAXD,kDAWC;AAED,MAAa,kBAAmB,SAAQ,kBAAkB;IAEtD,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,IAAI;QACA,OAAO,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE;YAC/B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAZD,gDAYC"}
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@theia/debug",
3
- "version": "1.19.0",
3
+ "version": "1.21.0-next.14+afd980a4d4f",
4
4
  "description": "Theia - Debug Extension",
5
5
  "dependencies": {
6
- "@theia/console": "1.19.0",
7
- "@theia/core": "1.19.0",
8
- "@theia/editor": "1.19.0",
9
- "@theia/filesystem": "1.19.0",
10
- "@theia/markers": "1.19.0",
11
- "@theia/monaco": "1.19.0",
12
- "@theia/output": "1.19.0",
13
- "@theia/preferences": "1.19.0",
14
- "@theia/process": "1.19.0",
15
- "@theia/task": "1.19.0",
16
- "@theia/terminal": "1.19.0",
17
- "@theia/userstorage": "1.19.0",
18
- "@theia/variable-resolver": "1.19.0",
19
- "@theia/workspace": "1.19.0",
6
+ "@theia/console": "1.21.0-next.14+afd980a4d4f",
7
+ "@theia/core": "1.21.0-next.14+afd980a4d4f",
8
+ "@theia/editor": "1.21.0-next.14+afd980a4d4f",
9
+ "@theia/filesystem": "1.21.0-next.14+afd980a4d4f",
10
+ "@theia/markers": "1.21.0-next.14+afd980a4d4f",
11
+ "@theia/monaco": "1.21.0-next.14+afd980a4d4f",
12
+ "@theia/output": "1.21.0-next.14+afd980a4d4f",
13
+ "@theia/preferences": "1.21.0-next.14+afd980a4d4f",
14
+ "@theia/process": "1.21.0-next.14+afd980a4d4f",
15
+ "@theia/task": "1.21.0-next.14+afd980a4d4f",
16
+ "@theia/terminal": "1.21.0-next.14+afd980a4d4f",
17
+ "@theia/userstorage": "1.21.0-next.14+afd980a4d4f",
18
+ "@theia/variable-resolver": "1.21.0-next.14+afd980a4d4f",
19
+ "@theia/workspace": "1.21.0-next.14+afd980a4d4f",
20
20
  "jsonc-parser": "^2.2.0",
21
21
  "mkdirp": "^0.5.0",
22
22
  "p-debounce": "^2.1.0",
@@ -64,10 +64,10 @@
64
64
  "watch": "theiaext watch"
65
65
  },
66
66
  "devDependencies": {
67
- "@theia/ext-scripts": "1.19.0"
67
+ "@theia/ext-scripts": "1.20.0"
68
68
  },
69
69
  "nyc": {
70
70
  "extends": "../../configs/nyc.json"
71
71
  },
72
- "gitHead": "cebb5417bb40e320178e3a4e66070af514f0525f"
72
+ "gitHead": "afd980a4d4ff6b48d70fc0ce1e459f6496c62624"
73
73
  }
@@ -34,15 +34,14 @@ export const InDebugReplContextKey = Symbol('inDebugReplContextKey');
34
34
 
35
35
  export namespace DebugConsoleCommands {
36
36
 
37
- export const DEBUG_CATEGORY_KEY = 'vscode/debugCommands/debug';
38
37
  export const DEBUG_CATEGORY = 'Debug';
39
38
 
40
- export const CLEAR = Command.toLocalizedCommand({
39
+ export const CLEAR = Command.toDefaultLocalizedCommand({
41
40
  id: 'debug.console.clear',
42
41
  category: DEBUG_CATEGORY,
43
42
  label: 'Clear Console',
44
43
  iconClass: codicon('clear-all')
45
- }, 'vscode/repl/clearRepl', DEBUG_CATEGORY_KEY);
44
+ });
46
45
  }
47
46
 
48
47
  @injectable()
@@ -136,7 +135,7 @@ export class DebugConsoleContribution extends AbstractViewContribution<ConsoleWi
136
135
  static options: ConsoleOptions = {
137
136
  id: 'debug-console',
138
137
  title: {
139
- label: nls.localize('vscode/repl/debugConsole', 'Debug Console'),
138
+ label: nls.localizeByDefault('Debug Console'),
140
139
  iconClass: codicon('debug-console')
141
140
  },
142
141
  input: {
@@ -72,13 +72,13 @@ export class DebugConsoleSession extends ConsoleSession {
72
72
  this.completionKinds.set('file', monaco.languages.CompletionItemKind.File);
73
73
  this.completionKinds.set('reference', monaco.languages.CompletionItemKind.Reference);
74
74
  this.completionKinds.set('customcolor', monaco.languages.CompletionItemKind.Color);
75
- monaco.languages.registerCompletionItemProvider({
75
+ this.toDispose.push(monaco.languages.registerCompletionItemProvider({
76
76
  scheme: DebugConsoleSession.uri.scheme,
77
77
  hasAccessToAllModels: true
78
78
  }, {
79
79
  triggerCharacters: ['.'],
80
80
  provideCompletionItems: (model, position) => this.completions(model, position),
81
- });
81
+ }));
82
82
  }
83
83
 
84
84
  getElements(): IterableIterator<ConsoleItem> {
@@ -65,92 +65,93 @@ export namespace DebugMenus {
65
65
  }
66
66
 
67
67
  function nlsEditBreakpoint(breakpointKey: string, breakpoint: string): string {
68
- return nls.localize('vscode/breakpointEditorContribution/editBreakpoint', 'Edit {0}...', nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
68
+ return nls.localizeByDefault('Edit {0}...', nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
69
69
  }
70
70
 
71
71
  function nlsRemoveBreakpoint(breakpointKey: string, breakpoint: string): string {
72
- return nls.localize('vscode/breakpointEditorContribution/removeBreakpoint', 'Remove {0}',
72
+ return nls.localizeByDefault('Remove {0}',
73
73
  nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
74
74
  }
75
75
 
76
76
  function nlsEnableBreakpoint(breakpointKey: string, breakpoint: string): string {
77
- return nls.localize('vscode/breakpointEditorContribution/enableBreakpoint', 'Enable {0}',
77
+ return nls.localizeByDefault('Enable {0}',
78
78
  nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
79
79
  }
80
80
 
81
81
  function nlsDisableBreakpoint(breakpointKey: string, breakpoint: string): string {
82
- return nls.localize('vscode/breakpointEditorContribution/disableBreakpoint', 'Disable {0}',
82
+ return nls.localizeByDefault('Disable {0}',
83
83
  nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
84
84
  }
85
85
 
86
86
  export namespace DebugCommands {
87
87
 
88
- export const DEBUG_CATEGORY_KEY = 'vscode/debugCommands/debug';
89
88
  export const DEBUG_CATEGORY = 'Debug';
89
+ export const DEBUG_CATEGORY_KEY = nls.getDefaultKey(DEBUG_CATEGORY);
90
90
 
91
- export const START = Command.toLocalizedCommand({
91
+ export const START = Command.toDefaultLocalizedCommand({
92
92
  id: 'workbench.action.debug.start',
93
93
  category: DEBUG_CATEGORY,
94
94
  label: 'Start Debugging',
95
95
  iconClass: codicon('debug-alt')
96
- }, 'vscode/debugCommands/startDebug', DEBUG_CATEGORY_KEY);
97
- export const START_NO_DEBUG = Command.toLocalizedCommand({
96
+ });
97
+ export const START_NO_DEBUG = Command.toDefaultLocalizedCommand({
98
98
  id: 'workbench.action.debug.run',
99
- label: 'Debug: Start Without Debugging'
100
- }, 'vscode/debugCommands/startWithoutDebugging');
101
- export const STOP = Command.toLocalizedCommand({
99
+ category: DEBUG_CATEGORY,
100
+ label: 'Start Without Debugging'
101
+ });
102
+ export const STOP = Command.toDefaultLocalizedCommand({
102
103
  id: 'workbench.action.debug.stop',
103
104
  category: DEBUG_CATEGORY,
104
105
  label: 'Stop',
105
106
  iconClass: codicon('debug-stop')
106
- }, 'vscode/debugCommands/stop', DEBUG_CATEGORY_KEY);
107
- export const RESTART = Command.toLocalizedCommand({
107
+ });
108
+ export const RESTART = Command.toDefaultLocalizedCommand({
108
109
  id: 'workbench.action.debug.restart',
109
110
  category: DEBUG_CATEGORY,
110
111
  label: 'Restart',
111
- }, 'vscode/debugCommands/restartDebug', DEBUG_CATEGORY_KEY);
112
+ });
112
113
 
113
- export const OPEN_CONFIGURATIONS = Command.toLocalizedCommand({
114
+ export const OPEN_CONFIGURATIONS = Command.toDefaultLocalizedCommand({
114
115
  id: 'debug.configurations.open',
115
116
  category: DEBUG_CATEGORY,
116
117
  label: 'Open Configurations'
117
- }, 'vscode/debugViewlet/miOpenConfigurations', DEBUG_CATEGORY_KEY);
118
- export const ADD_CONFIGURATION = Command.toLocalizedCommand({
118
+ });
119
+ export const ADD_CONFIGURATION = Command.toDefaultLocalizedCommand({
119
120
  id: 'debug.configurations.add',
120
121
  category: DEBUG_CATEGORY,
121
122
  label: 'Add Configuration...'
122
- }, 'vscode/debugActionViewItems/addConfiguration', DEBUG_CATEGORY_KEY);
123
+ });
123
124
 
124
- export const STEP_OVER = Command.toLocalizedCommand({
125
+ export const STEP_OVER = Command.toDefaultLocalizedCommand({
125
126
  id: 'workbench.action.debug.stepOver',
126
127
  category: DEBUG_CATEGORY,
127
128
  label: 'Step Over',
128
129
  iconClass: codicon('debug-step-over')
129
- }, 'vscode/debugCommands/stepOverDebug', DEBUG_CATEGORY_KEY);
130
- export const STEP_INTO = Command.toLocalizedCommand({
130
+ });
131
+ export const STEP_INTO = Command.toDefaultLocalizedCommand({
131
132
  id: 'workbench.action.debug.stepInto',
132
133
  category: DEBUG_CATEGORY,
133
134
  label: 'Step Into',
134
135
  iconClass: codicon('debug-step-into')
135
- }, 'vscode/debugCommands/stepIntoDebug', DEBUG_CATEGORY_KEY);
136
- export const STEP_OUT = Command.toLocalizedCommand({
136
+ });
137
+ export const STEP_OUT = Command.toDefaultLocalizedCommand({
137
138
  id: 'workbench.action.debug.stepOut',
138
139
  category: DEBUG_CATEGORY,
139
140
  label: 'Step Out',
140
141
  iconClass: codicon('debug-step-out')
141
- }, 'vscode/debugCommands/stepOutDebug', DEBUG_CATEGORY_KEY);
142
- export const CONTINUE = Command.toLocalizedCommand({
142
+ });
143
+ export const CONTINUE = Command.toDefaultLocalizedCommand({
143
144
  id: 'workbench.action.debug.continue',
144
145
  category: DEBUG_CATEGORY,
145
146
  label: 'Continue',
146
147
  iconClass: codicon('debug-continue')
147
- }, 'vscode/debugCommands/continueDebug', DEBUG_CATEGORY_KEY);
148
- export const PAUSE = Command.toLocalizedCommand({
148
+ });
149
+ export const PAUSE = Command.toDefaultLocalizedCommand({
149
150
  id: 'workbench.action.debug.pause',
150
151
  category: DEBUG_CATEGORY,
151
152
  label: 'Pause',
152
153
  iconClass: codicon('debug-pause')
153
- }, 'vscode/debugCommands/pauseDebug', DEBUG_CATEGORY_KEY);
154
+ });
154
155
  export const CONTINUE_ALL = Command.toLocalizedCommand({
155
156
  id: 'debug.thread.continue.all',
156
157
  category: DEBUG_CATEGORY,
@@ -164,41 +165,41 @@ export namespace DebugCommands {
164
165
  iconClass: codicon('debug-pause')
165
166
  }, 'theia/debug/pauseAll', DEBUG_CATEGORY_KEY);
166
167
 
167
- export const TOGGLE_BREAKPOINT = Command.toLocalizedCommand({
168
+ export const TOGGLE_BREAKPOINT = Command.toDefaultLocalizedCommand({
168
169
  id: 'editor.debug.action.toggleBreakpoint',
169
170
  category: DEBUG_CATEGORY,
170
171
  label: 'Toggle Breakpoint',
171
- }, 'vscode/debugEditorActions/miToggleBreakpoint', DEBUG_CATEGORY_KEY);
172
- export const INLINE_BREAKPOINT = Command.toLocalizedCommand({
172
+ });
173
+ export const INLINE_BREAKPOINT = Command.toDefaultLocalizedCommand({
173
174
  id: 'editor.debug.action.inlineBreakpoint',
174
175
  category: DEBUG_CATEGORY,
175
176
  label: 'Inline Breakpoint',
176
- }, 'vscode/debug.contribution/inlineBreakpoint', DEBUG_CATEGORY_KEY);
177
- export const ADD_CONDITIONAL_BREAKPOINT = Command.toLocalizedCommand({
177
+ });
178
+ export const ADD_CONDITIONAL_BREAKPOINT = Command.toDefaultLocalizedCommand({
178
179
  id: 'debug.breakpoint.add.conditional',
179
180
  category: DEBUG_CATEGORY,
180
181
  label: 'Add Conditional Breakpoint...',
181
- }, 'vscode/breakpointEditorContribution/addConditionalBreakpoint', DEBUG_CATEGORY_KEY);
182
- export const ADD_LOGPOINT = Command.toLocalizedCommand({
182
+ });
183
+ export const ADD_LOGPOINT = Command.toDefaultLocalizedCommand({
183
184
  id: 'debug.breakpoint.add.logpoint',
184
185
  category: DEBUG_CATEGORY,
185
186
  label: 'Add Logpoint...',
186
- }, 'vscode/breakpointEditorContribution/addLogPoint', DEBUG_CATEGORY_KEY);
187
- export const ADD_FUNCTION_BREAKPOINT = Command.toLocalizedCommand({
187
+ });
188
+ export const ADD_FUNCTION_BREAKPOINT = Command.toDefaultLocalizedCommand({
188
189
  id: 'debug.breakpoint.add.function',
189
190
  category: DEBUG_CATEGORY,
190
- label: 'Add Function Breakpoint...',
191
- }, 'vscode/breakpointsView/addFunctionBreakpoint', DEBUG_CATEGORY_KEY);
192
- export const ENABLE_ALL_BREAKPOINTS = Command.toLocalizedCommand({
191
+ label: 'Add Function Breakpoint',
192
+ });
193
+ export const ENABLE_ALL_BREAKPOINTS = Command.toDefaultLocalizedCommand({
193
194
  id: 'debug.breakpoint.enableAll',
194
195
  category: DEBUG_CATEGORY,
195
196
  label: 'Enable All Breakpoints',
196
- }, 'vscode/breakpointsView/enableAllBreakpoints', DEBUG_CATEGORY_KEY);
197
- export const DISABLE_ALL_BREAKPOINTS = Command.toLocalizedCommand({
197
+ });
198
+ export const DISABLE_ALL_BREAKPOINTS = Command.toDefaultLocalizedCommand({
198
199
  id: 'debug.breakpoint.disableAll',
199
200
  category: DEBUG_CATEGORY,
200
201
  label: 'Disable All Breakpoints',
201
- }, 'vscode/breakpointsView/disableAllBreakpoints', DEBUG_CATEGORY_KEY);
202
+ });
202
203
  export const EDIT_BREAKPOINT = Command.toLocalizedCommand({
203
204
  id: 'debug.breakpoint.edit',
204
205
  category: DEBUG_CATEGORY,
@@ -223,82 +224,82 @@ export namespace DebugCommands {
223
224
  originalLabel: 'Remove Logpoint',
224
225
  label: nlsRemoveBreakpoint('logPoint', 'Logpoint')
225
226
  }, '', DEBUG_CATEGORY_KEY);
226
- export const REMOVE_ALL_BREAKPOINTS = Command.toLocalizedCommand({
227
+ export const REMOVE_ALL_BREAKPOINTS = Command.toDefaultLocalizedCommand({
227
228
  id: 'debug.breakpoint.removeAll',
228
229
  category: DEBUG_CATEGORY,
229
230
  label: 'Remove All Breakpoints',
230
- }, 'vscode/breakpointsView/removeAllBreakpoints', DEBUG_CATEGORY_KEY);
231
+ });
231
232
  export const TOGGLE_BREAKPOINTS_ENABLED = Command.toLocalizedCommand({
232
233
  id: 'debug.breakpoint.toggleEnabled'
233
234
  });
234
- export const SHOW_HOVER = Command.toLocalizedCommand({
235
+ export const SHOW_HOVER = Command.toDefaultLocalizedCommand({
235
236
  id: 'editor.debug.action.showDebugHover',
236
237
  category: DEBUG_CATEGORY,
237
238
  label: 'Show Hover'
238
- }, 'vscode/hover/showHover', DEBUG_CATEGORY_KEY);
239
+ });
239
240
 
240
- export const RESTART_FRAME = Command.toLocalizedCommand({
241
+ export const RESTART_FRAME = Command.toDefaultLocalizedCommand({
241
242
  id: 'debug.frame.restart',
242
243
  category: DEBUG_CATEGORY,
243
244
  label: 'Restart Frame',
244
- }, 'vscode/debug.contribution/restartFrame', DEBUG_CATEGORY_KEY);
245
- export const COPY_CALL_STACK = Command.toLocalizedCommand({
245
+ });
246
+ export const COPY_CALL_STACK = Command.toDefaultLocalizedCommand({
246
247
  id: 'debug.callStack.copy',
247
248
  category: DEBUG_CATEGORY,
248
249
  label: 'Copy Call Stack',
249
- }, 'vscode/debug.contribution/copyStackTrace', DEBUG_CATEGORY_KEY);
250
+ });
250
251
 
251
- export const SET_VARIABLE_VALUE = Command.toLocalizedCommand({
252
+ export const SET_VARIABLE_VALUE = Command.toDefaultLocalizedCommand({
252
253
  id: 'debug.variable.setValue',
253
254
  category: DEBUG_CATEGORY,
254
255
  label: 'Set Value',
255
- }, 'vscode/debug.contribution/setValue', DEBUG_CATEGORY_KEY);
256
- export const COPY_VARIABLE_VALUE = Command.toLocalizedCommand({
256
+ });
257
+ export const COPY_VARIABLE_VALUE = Command.toDefaultLocalizedCommand({
257
258
  id: 'debug.variable.copyValue',
258
259
  category: DEBUG_CATEGORY,
259
260
  label: 'Copy Value',
260
- }, 'vscode/debug.contribution/copyValue', DEBUG_CATEGORY_KEY);
261
- export const COPY_VARIABLE_AS_EXPRESSION = Command.toLocalizedCommand({
261
+ });
262
+ export const COPY_VARIABLE_AS_EXPRESSION = Command.toDefaultLocalizedCommand({
262
263
  id: 'debug.variable.copyAsExpression',
263
264
  category: DEBUG_CATEGORY,
264
- label: 'Copy As Expression',
265
- }, 'vscode/debug.contribution/copyAsExpression', DEBUG_CATEGORY_KEY);
266
- export const WATCH_VARIABLE = Command.toLocalizedCommand({
265
+ label: 'Copy as Expression',
266
+ });
267
+ export const WATCH_VARIABLE = Command.toDefaultLocalizedCommand({
267
268
  id: 'debug.variable.watch',
268
269
  category: DEBUG_CATEGORY,
269
270
  label: 'Add to Watch',
270
- }, 'vscode/debug.contribution/addToWatchExpressions', DEBUG_CATEGORY_KEY);
271
+ });
271
272
 
272
- export const ADD_WATCH_EXPRESSION = Command.toLocalizedCommand({
273
+ export const ADD_WATCH_EXPRESSION = Command.toDefaultLocalizedCommand({
273
274
  id: 'debug.watch.addExpression',
274
275
  category: DEBUG_CATEGORY,
275
276
  label: 'Add Expression'
276
- }, 'vscode/watchExpressionsView/addWatchExpression', DEBUG_CATEGORY_KEY);
277
- export const EDIT_WATCH_EXPRESSION = Command.toLocalizedCommand({
277
+ });
278
+ export const EDIT_WATCH_EXPRESSION = Command.toDefaultLocalizedCommand({
278
279
  id: 'debug.watch.editExpression',
279
280
  category: DEBUG_CATEGORY,
280
281
  label: 'Edit Expression'
281
- }, 'vscode/debug.contribution/editWatchExpression', DEBUG_CATEGORY_KEY);
282
+ });
282
283
  export const COPY_WATCH_EXPRESSION_VALUE = Command.toLocalizedCommand({
283
284
  id: 'debug.watch.copyExpressionValue',
284
285
  category: DEBUG_CATEGORY,
285
286
  label: 'Copy Expression Value'
286
287
  }, 'theia/debug/copyExpressionValue', DEBUG_CATEGORY_KEY);
287
- export const REMOVE_WATCH_EXPRESSION = Command.toLocalizedCommand({
288
+ export const REMOVE_WATCH_EXPRESSION = Command.toDefaultLocalizedCommand({
288
289
  id: 'debug.watch.removeExpression',
289
290
  category: DEBUG_CATEGORY,
290
291
  label: 'Remove Expression'
291
- }, 'vscode/debug.contribution/removeWatchExpression', DEBUG_CATEGORY_KEY);
292
- export const COLLAPSE_ALL_WATCH_EXPRESSIONS = Command.toLocalizedCommand({
292
+ });
293
+ export const COLLAPSE_ALL_WATCH_EXPRESSIONS = Command.toDefaultLocalizedCommand({
293
294
  id: 'debug.watch.collapseAllExpressions',
294
295
  category: DEBUG_CATEGORY,
295
- label: 'Collapse All Expressions'
296
- }, 'vscode/watchExpressionsView/collapse', DEBUG_CATEGORY_KEY);
297
- export const REMOVE_ALL_WATCH_EXPRESSIONS = Command.toLocalizedCommand({
296
+ label: 'Collapse All'
297
+ });
298
+ export const REMOVE_ALL_WATCH_EXPRESSIONS = Command.toDefaultLocalizedCommand({
298
299
  id: 'debug.watch.removeAllExpressions',
299
300
  category: DEBUG_CATEGORY,
300
301
  label: 'Remove All Expressions'
301
- }, 'vscode/watchExpressionsView/removeAllWatchExpressions', DEBUG_CATEGORY_KEY);
302
+ });
302
303
  }
303
304
  export namespace DebugThreadContextCommands {
304
305
  export const STEP_OVER = {
@@ -525,7 +526,7 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
525
526
  }
526
527
  };
527
528
 
528
- menus.registerSubmenu(DebugMenus.DEBUG, nls.localize('vscode/debug.contribution/run', 'Run'));
529
+ menus.registerSubmenu(DebugMenus.DEBUG, nls.localizeByDefault('Run'));
529
530
  registerMenuActions(DebugMenus.DEBUG_CONTROLS,
530
531
  DebugCommands.START,
531
532
  DebugCommands.START_NO_DEBUG,
@@ -550,7 +551,7 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
550
551
  registerMenuActions(DebugMenus.DEBUG_BREAKPOINT,
551
552
  DebugCommands.TOGGLE_BREAKPOINT
552
553
  );
553
- menus.registerSubmenu(DebugMenus.DEBUG_NEW_BREAKPOINT, nls.localize('vscode/debug.contribution/miNewBreakpoint', 'New Breakpoint'));
554
+ menus.registerSubmenu(DebugMenus.DEBUG_NEW_BREAKPOINT, nls.localizeByDefault('New Breakpoint'));
554
555
  registerMenuActions(DebugMenus.DEBUG_NEW_BREAKPOINT,
555
556
  DebugCommands.ADD_CONDITIONAL_BREAKPOINT,
556
557
  DebugCommands.INLINE_BREAKPOINT,
@@ -575,7 +576,7 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
575
576
  registerMenuActions(DebugThreadsWidget.TERMINATE_MENU,
576
577
  { ...DebugCommands.RESTART, ...DebugSessionContextCommands.RESTART },
577
578
  { ...DebugCommands.STOP, ...DebugSessionContextCommands.STOP },
578
- { ...DebugThreadContextCommands.TERMINATE, label: nls.localize('vscode/debug.contribution/terminateThread', 'Terminate Thread') }
579
+ { ...DebugThreadContextCommands.TERMINATE, label: nls.localizeByDefault('Terminate Thread') }
579
580
  );
580
581
  registerMenuActions(DebugThreadsWidget.OPEN_MENU,
581
582
  { ...DebugSessionContextCommands.REVEAL, label: nls.localize('theia/debug/reveal', 'Reveal') },
@@ -622,7 +623,7 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
622
623
  );
623
624
 
624
625
  registerMenuActions(DebugEditorModel.CONTEXT_MENU,
625
- { ...DebugEditorContextCommands.ADD_BREAKPOINT, label: nls.localize('vscode/breakpointEditorContribution/addBreakpoint', 'Add Breakpoint') },
626
+ { ...DebugEditorContextCommands.ADD_BREAKPOINT, label: nls.localizeByDefault('Add Breakpoint') },
626
627
  { ...DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT, label: DebugCommands.ADD_CONDITIONAL_BREAKPOINT.label },
627
628
  { ...DebugEditorContextCommands.ADD_LOGPOINT, label: DebugCommands.ADD_LOGPOINT.label },
628
629
  { ...DebugEditorContextCommands.REMOVE_BREAKPOINT, label: DebugCommands.REMOVE_BREAKPOINT.label },
@@ -645,11 +646,11 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
645
646
  execute: (config?: DebugSessionOptions) => this.start(true, config)
646
647
  });
647
648
  registry.registerCommand(DebugCommands.STOP, {
648
- execute: () => this.manager.terminateSessions(),
649
+ execute: () => this.manager.terminateSession(),
649
650
  isEnabled: () => this.manager.state !== DebugState.Inactive
650
651
  });
651
652
  registry.registerCommand(DebugCommands.RESTART, {
652
- execute: () => this.manager.restartSessions(),
653
+ execute: () => this.manager.restartSession(),
653
654
  isEnabled: () => this.manager.state !== DebugState.Inactive
654
655
  });
655
656
 
@@ -721,12 +722,12 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
721
722
  });
722
723
 
723
724
  registry.registerCommand(DebugSessionContextCommands.STOP, {
724
- execute: () => this.selectedSession && this.selectedSession.terminate(),
725
+ execute: () => this.selectedSession && this.manager.terminateSession(this.selectedSession),
725
726
  isEnabled: () => !!this.selectedSession && this.selectedSession.state !== DebugState.Inactive,
726
727
  isVisible: () => !this.selectedThread
727
728
  });
728
729
  registry.registerCommand(DebugSessionContextCommands.RESTART, {
729
- execute: () => this.selectedSession && this.manager.restart(this.selectedSession),
730
+ execute: () => this.selectedSession && this.manager.restartSession(this.selectedSession),
730
731
  isEnabled: () => !!this.selectedSession && this.selectedSession.state !== DebugState.Inactive,
731
732
  isVisible: () => !this.selectedThread
732
733
  });
@@ -1106,8 +1107,8 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi
1106
1107
  priority: 1
1107
1108
  };
1108
1109
  const updateToggleBreakpointsEnabled = () => {
1109
- const activateBreakpoints = nls.localize('vscode/breakpointsView/enableAllBreakpoints', 'Enable Breakpoints');
1110
- const deactivateBreakpoints = nls.localize('vscode/breakpointsView/disableAllBreakpoints', 'Disable Breakpoints');
1110
+ const activateBreakpoints = nls.localizeByDefault('Enable All Breakpoints');
1111
+ const deactivateBreakpoints = nls.localizeByDefault('Disable All Breakpoints');
1111
1112
  const tooltip = this.breakpointManager.breakpointsEnabled ? deactivateBreakpoints : activateBreakpoints;
1112
1113
  if (toggleBreakpointsEnabled.tooltip !== tooltip) {
1113
1114
  toggleBreakpointsEnabled.tooltip = tooltip;