@theia/debug 1.65.0-next.19 → 1.65.0-next.39
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/lib/browser/console/debug-console-items.d.ts.map +1 -1
- package/lib/browser/console/debug-console-items.js +33 -19
- package/lib/browser/console/debug-console-items.js.map +1 -1
- package/lib/browser/debug-configuration-manager.d.ts +2 -2
- package/lib/browser/debug-configuration-manager.d.ts.map +1 -1
- package/lib/browser/debug-configuration-manager.js +5 -6
- package/lib/browser/debug-configuration-manager.js.map +1 -1
- package/lib/browser/debug-configuration-model.d.ts +1 -1
- package/lib/browser/debug-configuration-model.d.ts.map +1 -1
- package/lib/browser/debug-configuration-model.js.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.d.ts +12 -3
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.js +130 -3
- package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
- package/lib/browser/debug-frontend-module.js +2 -2
- package/lib/browser/debug-frontend-module.js.map +1 -1
- package/lib/browser/debug-prefix-configuration.d.ts +1 -1
- package/lib/browser/debug-prefix-configuration.d.ts.map +1 -1
- package/lib/browser/debug-prefix-configuration.js +1 -1
- package/lib/browser/debug-prefix-configuration.js.map +1 -1
- package/lib/browser/debug-schema-updater.d.ts +0 -1
- package/lib/browser/debug-schema-updater.d.ts.map +1 -1
- package/lib/browser/debug-schema-updater.js +5 -5
- package/lib/browser/debug-schema-updater.js.map +1 -1
- package/lib/browser/debug-session-contribution.d.ts +1 -1
- package/lib/browser/debug-session-contribution.d.ts.map +1 -1
- package/lib/browser/debug-session-contribution.js +1 -1
- package/lib/browser/debug-session-contribution.js.map +1 -1
- package/lib/browser/debug-session.d.ts +8 -0
- package/lib/browser/debug-session.d.ts.map +1 -1
- package/lib/browser/debug-session.js +11 -1
- package/lib/browser/debug-session.js.map +1 -1
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +2 -2
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +1 -1
- package/lib/browser/disassembly-view/disassembly-view-widget.js +3 -3
- package/lib/browser/disassembly-view/disassembly-view-widget.js.map +1 -1
- package/lib/browser/editor/debug-editor-model.js +3 -2
- package/lib/browser/editor/debug-editor-model.js.map +1 -1
- package/lib/browser/editor/debug-inline-value-decorator.d.ts +1 -1
- package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +1 -1
- package/lib/browser/editor/debug-inline-value-decorator.js +1 -1
- package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -1
- package/lib/{browser → common}/debug-preferences.d.ts +1 -1
- package/lib/{browser → common}/debug-preferences.d.ts.map +1 -1
- package/lib/{browser → common}/debug-preferences.js +1 -2
- package/lib/common/debug-preferences.js.map +1 -0
- package/lib/{browser/preferences → common}/launch-preferences.d.ts +2 -1
- package/lib/common/launch-preferences.d.ts.map +1 -0
- package/lib/{browser/preferences → common}/launch-preferences.js +8 -10
- package/lib/common/launch-preferences.js.map +1 -0
- package/lib/node/debug-backend-module.d.ts.map +1 -1
- package/lib/node/debug-backend-module.js +4 -0
- package/lib/node/debug-backend-module.js.map +1 -1
- package/package.json +15 -15
- package/src/browser/console/debug-console-items.tsx +31 -19
- package/src/browser/debug-configuration-manager.ts +2 -3
- package/src/browser/debug-configuration-model.ts +1 -2
- package/src/browser/debug-frontend-application-contribution.ts +146 -8
- package/src/browser/debug-frontend-module.ts +2 -2
- package/src/browser/debug-prefix-configuration.ts +1 -1
- package/src/browser/debug-schema-updater.ts +2 -2
- package/src/browser/debug-session-contribution.ts +1 -1
- package/src/browser/debug-session.tsx +11 -0
- package/src/browser/disassembly-view/disassembly-view-widget.ts +2 -2
- package/src/browser/editor/debug-editor-model.ts +2 -2
- package/src/browser/editor/debug-inline-value-decorator.ts +1 -1
- package/src/{browser → common}/debug-preferences.ts +1 -2
- package/src/{browser/preferences → common}/launch-preferences.ts +5 -6
- package/src/node/debug-backend-module.ts +4 -0
- package/lib/browser/debug-preferences.js.map +0 -1
- package/lib/browser/preferences/launch-preferences.d.ts.map +0 -1
- package/lib/browser/preferences/launch-preferences.js.map +0 -1
|
@@ -23,7 +23,7 @@ import { DebugSession } from './debug-session';
|
|
|
23
23
|
import { BreakpointManager } from './breakpoint/breakpoint-manager';
|
|
24
24
|
import { DebugConfigurationSessionOptions, DebugSessionOptions } from './debug-session-options';
|
|
25
25
|
import { OutputChannelManager, OutputChannel } from '@theia/output/lib/browser/output-channel';
|
|
26
|
-
import { DebugPreferences } from '
|
|
26
|
+
import { DebugPreferences } from '../common/debug-preferences';
|
|
27
27
|
import { DebugSessionConnection } from './debug-session-connection';
|
|
28
28
|
import { DebugChannel, DebugAdapterPath, ForwardingDebugChannel } from '../common/debug-service';
|
|
29
29
|
import { ContributionProvider } from '@theia/core/lib/common/contribution-provider';
|
|
@@ -66,6 +66,17 @@ export function debugStateContextValue(state: DebugState): string {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
const formatMessageRegexp = /\{([^}]+)\}/g;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Returns a formatted message string. The format is compatible with {@link DebugProtocol.Message.format}.
|
|
73
|
+
* @param format A format string for the message. Embedded variables have the form `{name}`.
|
|
74
|
+
* @param variables An object used as a dictionary for looking up the variables in the format string.
|
|
75
|
+
*/
|
|
76
|
+
export function formatMessage(format: string, variables?: { [key: string]: string; }): string {
|
|
77
|
+
return variables ? format.replace(formatMessageRegexp, (match, group) => variables.hasOwnProperty(group) ? variables[group] : match) : format;
|
|
78
|
+
}
|
|
79
|
+
|
|
69
80
|
// FIXME: make injectable to allow easily inject services
|
|
70
81
|
export class DebugSession implements CompositeTreeElement {
|
|
71
82
|
protected readonly deferredOnDidConfigureCapabilities = new Deferred<void>();
|
|
@@ -26,9 +26,9 @@ import { nls } from '@theia/core';
|
|
|
26
26
|
import { BareFontInfo } from '@theia/monaco-editor-core/esm/vs/editor/common/config/fontInfo';
|
|
27
27
|
import { WorkbenchTable } from '@theia/monaco-editor-core/esm/vs/platform/list/browser/listService';
|
|
28
28
|
import { DebugState, DebugSession } from '../debug-session';
|
|
29
|
-
import { EditorPreferences } from '@theia/editor/lib/
|
|
29
|
+
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
30
30
|
import { PixelRatio } from '@theia/monaco-editor-core/esm/vs/base/browser/pixelRatio';
|
|
31
|
-
import { DebugPreferences } from '
|
|
31
|
+
import { DebugPreferences } from '../../common/debug-preferences';
|
|
32
32
|
import { DebugThread } from '../model/debug-thread';
|
|
33
33
|
import { Event } from '@theia/monaco-editor-core/esm/vs/base/common/event';
|
|
34
34
|
import { DisassembledInstructionEntry } from './disassembly-view-utilities';
|
|
@@ -246,8 +246,8 @@ export class DebugEditorModel implements Disposable {
|
|
|
246
246
|
}
|
|
247
247
|
protected createBreakpointDecoration(breakpoint: SourceBreakpoint): monaco.editor.IModelDeltaDecoration {
|
|
248
248
|
const lineNumber = breakpoint.raw.line;
|
|
249
|
-
const column = breakpoint.raw.column;
|
|
250
|
-
const range =
|
|
249
|
+
const column = breakpoint.raw.column || this.editor.getControl().getModel()?.getLineFirstNonWhitespaceColumn(lineNumber) || 1;
|
|
250
|
+
const range = new monaco.Range(lineNumber, column, lineNumber, column + 1);
|
|
251
251
|
return {
|
|
252
252
|
range,
|
|
253
253
|
options: {
|
|
@@ -32,7 +32,7 @@ import { ITextModel } from '@theia/monaco-editor-core/esm/vs/editor/common/model
|
|
|
32
32
|
import { ILanguageFeaturesService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languageFeatures';
|
|
33
33
|
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
34
34
|
import { DebugVariable, ExpressionContainer, ExpressionItem } from '../console/debug-console-items';
|
|
35
|
-
import { DebugPreferences } from '
|
|
35
|
+
import { DebugPreferences } from '../../common/debug-preferences';
|
|
36
36
|
import { DebugStackFrame } from '../model/debug-stack-frame';
|
|
37
37
|
import { DebugEditorModel } from './debug-editor-model';
|
|
38
38
|
import { ICodeEditorService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/codeEditorService';
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { nls } from '@theia/core/lib/common/nls';
|
|
18
|
-
import {
|
|
18
|
+
import { PreferenceContribution, PreferenceProxy, PreferenceSchema, PreferenceService, createPreferenceProxy } from '@theia/core/lib/common/preferences';
|
|
19
19
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
20
20
|
|
|
21
21
|
export const debugPreferencesSchema: PreferenceSchema = {
|
|
22
|
-
type: 'object',
|
|
23
22
|
properties: {
|
|
24
23
|
'debug.trace': {
|
|
25
24
|
type: 'boolean',
|
|
@@ -15,19 +15,18 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
18
|
-
import { PreferenceContribution, PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution';
|
|
19
|
-
import { launchSchemaId } from '../debug-schema-updater';
|
|
20
|
-
import { PreferenceConfiguration } from '@theia/core/lib/browser/preferences/preference-configurations';
|
|
21
18
|
import { nls } from '@theia/core/lib/common/nls';
|
|
19
|
+
import { PreferenceConfiguration, PreferenceContribution, PreferenceSchema, PreferenceScope } from '@theia/core/lib/common';
|
|
20
|
+
|
|
21
|
+
export const launchSchemaId = 'vscode://schemas/launch';
|
|
22
22
|
|
|
23
23
|
export const launchPreferencesSchema: PreferenceSchema = {
|
|
24
|
-
|
|
25
|
-
scope: 'resource',
|
|
24
|
+
scope: PreferenceScope.Folder,
|
|
26
25
|
properties: {
|
|
27
26
|
'launch': {
|
|
28
27
|
$ref: launchSchemaId,
|
|
29
28
|
description: nls.localizeByDefault("Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."),
|
|
30
|
-
|
|
29
|
+
default: { configurations: [], compounds: [] }
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
};
|
|
@@ -34,6 +34,8 @@ import {
|
|
|
34
34
|
import { DebugServiceImpl } from './debug-service-impl';
|
|
35
35
|
import { DebugAdapterContributionRegistry } from '../common/debug-adapter-contribution-registry';
|
|
36
36
|
import { DebugAdapterSessionManager } from './debug-adapter-session-manager';
|
|
37
|
+
import { bindDebugPreferences } from '../common/debug-preferences';
|
|
38
|
+
import { bindLaunchPreferences } from '../common/launch-preferences';
|
|
37
39
|
|
|
38
40
|
const debugConnectionModule = ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
39
41
|
bindContributionProvider(bind, DebugAdapterContribution);
|
|
@@ -50,4 +52,6 @@ export default new ContainerModule(bind => {
|
|
|
50
52
|
bind(DebugAdapterFactory).to(LaunchBasedDebugAdapterFactory).inSingletonScope();
|
|
51
53
|
bind(DebugAdapterSessionManager).toSelf().inSingletonScope();
|
|
52
54
|
bind(MessagingService.Contribution).toService(DebugAdapterSessionManager);
|
|
55
|
+
bindDebugPreferences(bind);
|
|
56
|
+
bindLaunchPreferences(bind);
|
|
53
57
|
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-preferences.js","sourceRoot":"","sources":["../../src/browser/debug-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,oDAAiD;AACjD,qEAA0J;AAG7I,QAAA,sBAAsB,GAAqB;IACpD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,aAAa,EAAE;YACX,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,SAAG,CAAC,QAAQ,CAAC,2BAA2B,EAAE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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"launch-preferences.js","sourceRoot":"","sources":["../../../src/browser/preferences/launch-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAGhF,yGAAuH;AACvH,kEAAyD;AACzD,6GAAwG;AACxG,oDAAiD;AAEpC,QAAA,uBAAuB,GAAqB;IACrD,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,UAAU;IACjB,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,IAAI,EAAE,qCAAc;YACpB,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,wHAAwH,CAAC;YAC5J,YAAY,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;SACtD;KACJ;CACJ,CAAC;AAEF,SAAgB,qBAAqB,CAAC,IAAqB;IACvD,IAAI,CAAC,gDAAsB,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,+BAAuB,EAAE,CAAC,CAAC;IAClF,IAAI,CAAC,mDAAuB,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;AACtE,CAAC;AAHD,sDAGC"}
|