@codingame/monaco-vscode-debug-service-override 37.2.0 → 37.3.0

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 (36) hide show
  1. package/package.json +6 -2
  2. package/session.d.ts +2 -0
  3. package/session.js +17 -0
  4. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +17 -17
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +106 -106
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +20 -20
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +17 -17
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +24 -24
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +33 -33
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +35 -31
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +58 -58
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +15 -15
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +4 -4
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +8 -8
  18. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +10 -10
  19. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +10 -10
  20. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
  21. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +36 -36
  22. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
  24. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
  25. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +14 -14
  26. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +8 -8
  27. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +5 -3
  28. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
  29. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +45 -45
  30. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +12 -12
  31. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.d.ts +2 -2
  32. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +5 -5
  33. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +14 -14
  34. package/vscode/src/vs/workbench/contrib/debug/common/nullDebugService.d.ts +70 -0
  35. package/vscode/src/vs/workbench/contrib/debug/common/nullDebugService.js +137 -0
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
@@ -0,0 +1,70 @@
1
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
+ import { IDisposable, IReference } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
+ import { IAdapterManager, IBreakpoint, IConfig, IConfigurationManager, IDebugModel, IDebugSession, IDebugSessionOptions, IEnablement, IExceptionBreakpoint, IExpression, ILaunch, IStackFrame, IThread, IViewModel, State } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
5
+ import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
6
+ import type { IDataBreakpointOptions, IFunctionBreakpointOptions, IInstructionBreakpointOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugModel";
7
+ import { DebugVisualizer } from "./debugVisualizers.js";
8
+ import { IDebugVisualizerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debugVisualizers.service";
9
+ export declare class NullDebugService implements IDebugService {
10
+ readonly _serviceBrand: undefined;
11
+ readonly state = State.Inactive;
12
+ readonly initializingOptions: undefined;
13
+ readonly onDidChangeState: Event<any>;
14
+ readonly onWillNewSession: Event<any>;
15
+ readonly onDidNewSession: Event<any>;
16
+ readonly onDidEndSession: Event<any>;
17
+ getConfigurationManager(): IConfigurationManager;
18
+ getAdapterManager(): IAdapterManager;
19
+ getModel(): IDebugModel;
20
+ getViewModel(): IViewModel;
21
+ focusStackFrame(_focusedStackFrame: IStackFrame | undefined, _thread?: IThread, _session?: IDebugSession, _options?: {
22
+ explicit?: boolean;
23
+ preserveFocus?: boolean;
24
+ sideBySide?: boolean;
25
+ pinned?: boolean;
26
+ }): Promise<void>;
27
+ canSetBreakpointsIn(): boolean;
28
+ addBreakpoints(): Promise<IBreakpoint[]>;
29
+ updateBreakpoints(): Promise<void>;
30
+ enableOrDisableBreakpoints(_enable: boolean, _breakpoint?: IEnablement): Promise<void>;
31
+ setBreakpointsActivated(_activated: boolean): Promise<void>;
32
+ removeBreakpoints(_id?: string | string[]): Promise<void>;
33
+ addFunctionBreakpoint(_opts?: IFunctionBreakpointOptions, _id?: string): void;
34
+ updateFunctionBreakpoint(_id: string, _update: {
35
+ name?: string;
36
+ hitCondition?: string;
37
+ condition?: string;
38
+ }): Promise<void>;
39
+ removeFunctionBreakpoints(_id?: string): Promise<void>;
40
+ addDataBreakpoint(_opts: IDataBreakpointOptions): Promise<void>;
41
+ updateDataBreakpoint(_id: string, _update: {
42
+ hitCondition?: string;
43
+ condition?: string;
44
+ }): Promise<void>;
45
+ removeDataBreakpoints(_id?: string): Promise<void>;
46
+ addInstructionBreakpoint(_opts: IInstructionBreakpointOptions): Promise<void>;
47
+ removeInstructionBreakpoints(_instructionReference?: string, _offset?: number, _address?: bigint): Promise<void>;
48
+ setExceptionBreakpointCondition(_breakpoint: IExceptionBreakpoint, _condition: string | undefined): Promise<void>;
49
+ setExceptionBreakpointsForSession(_session: IDebugSession, _filters: DebugProtocol.ExceptionBreakpointsFilter[]): void;
50
+ sendAllBreakpoints(_session?: IDebugSession): Promise<void>;
51
+ sendBreakpoints(_modelUri: URI, _sourceModified?: boolean, _session?: IDebugSession): Promise<void>;
52
+ addWatchExpression(_name?: string): void;
53
+ renameWatchExpression(_id: string, _newName: string): void;
54
+ moveWatchExpression(_id: string, _position: number): void;
55
+ removeWatchExpressions(_id?: string): void;
56
+ startDebugging(_launch: ILaunch | undefined, _configOrName?: IConfig | string, _options?: IDebugSessionOptions, _saveBeforeStart?: boolean): Promise<boolean>;
57
+ restartSession(_session: IDebugSession, _restartData?: unknown): Promise<void>;
58
+ stopSession(_session: IDebugSession | undefined, _disconnect?: boolean, _suspend?: boolean): Promise<void>;
59
+ sourceIsNotAvailable(): void;
60
+ runTo(): Promise<void>;
61
+ }
62
+ export declare class NullDebugVisualizerService implements IDebugVisualizerService {
63
+ readonly _serviceBrand: undefined;
64
+ getApplicableFor(): Promise<IReference<DebugVisualizer[]>>;
65
+ register(): IDisposable;
66
+ registerTree(): IDisposable;
67
+ getVisualizedNodeFor(): Promise<undefined>;
68
+ getVisualizedChildren(): Promise<IExpression[]>;
69
+ editTreeItem(): Promise<void>;
70
+ }
@@ -0,0 +1,137 @@
1
+
2
+ import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
3
+ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
+ import { State } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
5
+
6
+ const nullViewModel = {
7
+ getId() { return 'root'; },
8
+ focusedSession: undefined,
9
+ focusedThread: undefined,
10
+ focusedStackFrame: undefined,
11
+ setVisualizedExpression() { },
12
+ getVisualizedExpression() { return undefined; },
13
+ getSelectedExpression() { return undefined; },
14
+ setSelectedExpression() { },
15
+ updateViews() { },
16
+ isMultiSessionView() { return false; },
17
+ onDidFocusSession: Event.None,
18
+ onDidFocusThread: Event.None,
19
+ onDidFocusStackFrame: Event.None,
20
+ onDidSelectExpression: Event.None,
21
+ onDidEvaluateLazyExpression: Event.None,
22
+ onDidChangeVisualization: Event.None,
23
+ onWillUpdateViews: Event.None,
24
+ evaluateLazyExpression(_expression) { },
25
+ };
26
+ const nullDebugModel = {
27
+ getId() { return 'root'; },
28
+ getSession() { return undefined; },
29
+ getSessions() { return []; },
30
+ getBreakpoints() { return []; },
31
+ areBreakpointsActivated() { return false; },
32
+ getFunctionBreakpoints() { return []; },
33
+ getDataBreakpoints() { return []; },
34
+ getExceptionBreakpoints() { return []; },
35
+ getExceptionBreakpointsForSession() { return []; },
36
+ getInstructionBreakpoints() { return []; },
37
+ getWatchExpressions() { return []; },
38
+ registerBreakpointModes() { },
39
+ getBreakpointModes() { return []; },
40
+ onDidChangeBreakpoints: Event.None,
41
+ onDidChangeCallStack: Event.None,
42
+ onDidChangeWatchExpressions: Event.None,
43
+ onDidChangeWatchExpressionValue: Event.None,
44
+ async fetchCallstack() { },
45
+ };
46
+ const nullConfigurationManager = {
47
+ selectedConfiguration: {
48
+ launch: undefined,
49
+ getConfig: () => Promise.resolve(undefined),
50
+ name: undefined,
51
+ type: undefined,
52
+ },
53
+ async selectConfiguration() { },
54
+ getLaunches() { return []; },
55
+ getLaunch() { return undefined; },
56
+ getAllConfigurations() { return []; },
57
+ removeRecentDynamicConfigurations() { },
58
+ getRecentDynamicConfigurations() { return []; },
59
+ onDidSelectConfiguration: Event.None,
60
+ onDidChangeConfigurationProviders: Event.None,
61
+ hasDebugConfigurationProvider() { return false; },
62
+ async getDynamicProviders() { return []; },
63
+ async getDynamicConfigurationsByType() { return []; },
64
+ registerDebugConfigurationProvider() { return Disposable.None; },
65
+ unregisterDebugConfigurationProvider() { },
66
+ async resolveConfigurationByProviders() { return undefined; },
67
+ };
68
+ const nullAdapterManager = {
69
+ onDidRegisterDebugger: Event.None,
70
+ hasEnabledDebuggers() { return false; },
71
+ async getDebugAdapterDescriptor() { return undefined; },
72
+ getDebuggerLabel() { return undefined; },
73
+ someDebuggerInterestedInLanguage() { return false; },
74
+ getDebugger() { return undefined; },
75
+ async activateDebuggers() { },
76
+ registerDebugAdapterFactory() { return Disposable.None; },
77
+ createDebugAdapter() { return undefined; },
78
+ registerDebugAdapterDescriptorFactory() { return Disposable.None; },
79
+ unregisterDebugAdapterDescriptorFactory() { },
80
+ async substituteVariables(_debugType, _folder, config) { return config; },
81
+ async runInTerminal() { return undefined; },
82
+ getEnabledDebugger() { return undefined; },
83
+ async guessDebugger() { return undefined; },
84
+ get onDidDebuggersExtPointRead() { return Event.None; },
85
+ };
86
+ class NullDebugService {
87
+ constructor() {
88
+ this.state = State.Inactive;
89
+ this.initializingOptions = undefined;
90
+ this.onDidChangeState = Event.None;
91
+ this.onWillNewSession = Event.None;
92
+ this.onDidNewSession = Event.None;
93
+ this.onDidEndSession = Event.None;
94
+ }
95
+ getConfigurationManager() { return nullConfigurationManager; }
96
+ getAdapterManager() { return nullAdapterManager; }
97
+ getModel() { return nullDebugModel; }
98
+ getViewModel() { return nullViewModel; }
99
+ async focusStackFrame(_focusedStackFrame, _thread, _session, _options) { }
100
+ canSetBreakpointsIn() { return false; }
101
+ async addBreakpoints() { return []; }
102
+ async updateBreakpoints() { }
103
+ async enableOrDisableBreakpoints(_enable, _breakpoint) { }
104
+ async setBreakpointsActivated(_activated) { }
105
+ async removeBreakpoints(_id) { }
106
+ addFunctionBreakpoint(_opts, _id) { }
107
+ async updateFunctionBreakpoint(_id, _update) { }
108
+ async removeFunctionBreakpoints(_id) { }
109
+ async addDataBreakpoint(_opts) { }
110
+ async updateDataBreakpoint(_id, _update) { }
111
+ async removeDataBreakpoints(_id) { }
112
+ async addInstructionBreakpoint(_opts) { }
113
+ async removeInstructionBreakpoints(_instructionReference, _offset, _address) { }
114
+ async setExceptionBreakpointCondition(_breakpoint, _condition) { }
115
+ setExceptionBreakpointsForSession(_session, _filters) { }
116
+ async sendAllBreakpoints(_session) { }
117
+ async sendBreakpoints(_modelUri, _sourceModified, _session) { }
118
+ addWatchExpression(_name) { }
119
+ renameWatchExpression(_id, _newName) { }
120
+ moveWatchExpression(_id, _position) { }
121
+ removeWatchExpressions(_id) { }
122
+ async startDebugging(_launch, _configOrName, _options, _saveBeforeStart) { return false; }
123
+ async restartSession(_session, _restartData) { }
124
+ async stopSession(_session, _disconnect, _suspend) { }
125
+ sourceIsNotAvailable() { }
126
+ async runTo() { }
127
+ }
128
+ class NullDebugVisualizerService {
129
+ async getApplicableFor() { return { object: [], dispose() { } }; }
130
+ register() { return Disposable.None; }
131
+ registerTree() { return Disposable.None; }
132
+ async getVisualizedNodeFor() { return undefined; }
133
+ async getVisualizedChildren() { return []; }
134
+ async editTreeItem() { }
135
+ }
136
+
137
+ export { NullDebugService, NullDebugVisualizerService };
@@ -8,7 +8,7 @@ import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/w
8
8
  import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
9
9
 
10
10
  const COPY_NOTEBOOK_VARIABLE_VALUE_ID = "workbench.debug.viewlet.action.copyWorkspaceVariableValue";
11
- const COPY_NOTEBOOK_VARIABLE_VALUE_LABEL = ( localize(14437, "Copy Value"));
11
+ const COPY_NOTEBOOK_VARIABLE_VALUE_LABEL = ( localize(16576, "Copy Value"));
12
12
  registerAction2(class extends Action2 {
13
13
  constructor() {
14
14
  super({
@@ -28,7 +28,7 @@ registerAction2(class extends Action2 {
28
28
  constructor() {
29
29
  super({
30
30
  id: "_executeNotebookVariableProvider",
31
- title: ( localize(14438, "Execute Notebook Variable Provider")),
31
+ title: ( localize(16577, "Execute Notebook Variable Provider")),
32
32
  f1: false
33
33
  });
34
34
  }