@codingame/monaco-vscode-api 1.76.1 → 1.76.3-next.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.
- package/README.md +2 -1
- package/dist/api.js +3 -860
- package/dist/{extHost.js → api2.js} +16555 -13467
- package/dist/async.js +107 -2
- package/dist/audioCue.js +105 -103
- package/dist/button.js +1 -1
- package/dist/cancellation.js +3 -0
- package/dist/configuration.js +7 -344
- package/dist/configuration2.js +339 -0
- package/dist/configurationRegistry.js +441 -0
- package/dist/contextkeys.js +211 -0
- package/dist/debug.d.ts +22 -0
- package/dist/debug.js +15842 -0
- package/dist/dialogs.js +855 -9
- package/dist/extensionResourceLoader.js +96 -0
- package/dist/extensions.d.ts +491 -0
- package/dist/extensions.js +70 -0
- package/dist/{tools.js → extensionsRegistry.js} +2 -30
- package/dist/files.js +1407 -334
- package/dist/iconv.js +43 -0
- package/dist/injection.js +1 -1
- package/dist/jschardet.js +7 -0
- package/dist/keybindings.d.ts +1 -485
- package/dist/keybindings.js +666 -679
- package/dist/labels.js +14 -0
- package/dist/languageConfiguration.d.ts +1 -2
- package/dist/languageConfiguration.js +9 -16
- package/dist/languageService.js +112 -8
- package/dist/languages.d.ts +1 -473
- package/dist/languages.js +2 -12
- package/dist/layout.js +4 -3
- package/dist/layoutService.js +1 -1
- package/dist/missing-services.js +4710 -74
- package/dist/modelEditor.d.ts +324 -2
- package/dist/modelEditor.js +15 -228
- package/dist/monaco.js +7 -72
- package/dist/notifications.js +75 -232
- package/dist/polyfill.js +10715 -2459
- package/dist/resources.js +197 -0
- package/dist/services.d.ts +924 -3
- package/dist/services.js +1 -2
- package/dist/services2.js +2436 -18
- package/dist/snippets.d.ts +1 -473
- package/dist/snippets.js +8 -867
- package/dist/snippetsService.js +868 -0
- package/dist/textFileEditorModel.js +2985 -0
- package/dist/textmate.d.ts +3 -475
- package/dist/textmate.js +19 -29
- package/dist/theme.d.ts +1 -3
- package/dist/theme.js +24 -70
- package/dist/tokenClassification.d.ts +1 -475
- package/dist/tokenClassification.js +11 -37
- package/dist/tokenClassificationRegistry.js +8 -4
- package/dist/variableResolver.js +1711 -0
- package/dist/workbenchThemeService.js +1 -1
- package/dist/workspaceContext.js +1 -3
- package/package.json +27 -12
- package/dist/contextkey.js +0 -419
- package/dist/dialog.web.contribution.js +0 -945
package/dist/services.d.ts
CHANGED
|
@@ -1277,7 +1277,7 @@ interface IConfiguration {
|
|
|
1277
1277
|
[key: string]: IConfigurationProperty;
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
interface IDebugger {
|
|
1280
|
+
interface IDebugger$1 {
|
|
1281
1281
|
label?: string;
|
|
1282
1282
|
type: string;
|
|
1283
1283
|
runtime?: string;
|
|
@@ -1422,7 +1422,7 @@ interface ILocalizationContribution {
|
|
|
1422
1422
|
interface IExtensionContributions {
|
|
1423
1423
|
commands?: ICommand[];
|
|
1424
1424
|
configuration?: IConfiguration | IConfiguration[];
|
|
1425
|
-
debuggers?: IDebugger[];
|
|
1425
|
+
debuggers?: IDebugger$1[];
|
|
1426
1426
|
grammars?: IGrammar[];
|
|
1427
1427
|
jsonValidation?: IJSONValidation[];
|
|
1428
1428
|
keybindings?: IKeyBinding[];
|
|
@@ -8226,6 +8226,33 @@ interface ICreateFileOptions {
|
|
|
8226
8226
|
readonly overwrite?: boolean;
|
|
8227
8227
|
}
|
|
8228
8228
|
|
|
8229
|
+
declare enum LogLevel {
|
|
8230
|
+
Off = 0,
|
|
8231
|
+
Trace = 1,
|
|
8232
|
+
Debug = 2,
|
|
8233
|
+
Info = 3,
|
|
8234
|
+
Warning = 4,
|
|
8235
|
+
Error = 5
|
|
8236
|
+
}
|
|
8237
|
+
interface ILogger extends IDisposable {
|
|
8238
|
+
onDidChangeLogLevel: Event$1<LogLevel>;
|
|
8239
|
+
getLevel(): LogLevel;
|
|
8240
|
+
setLevel(level: LogLevel): void;
|
|
8241
|
+
trace(message: string, ...args: any[]): void;
|
|
8242
|
+
debug(message: string, ...args: any[]): void;
|
|
8243
|
+
info(message: string, ...args: any[]): void;
|
|
8244
|
+
warn(message: string, ...args: any[]): void;
|
|
8245
|
+
error(message: string | Error, ...args: any[]): void;
|
|
8246
|
+
/**
|
|
8247
|
+
* An operation to flush the contents. Can be synchronous.
|
|
8248
|
+
*/
|
|
8249
|
+
flush(): void;
|
|
8250
|
+
}
|
|
8251
|
+
declare const ILogService: ServiceIdentifier<ILogService>;
|
|
8252
|
+
interface ILogService extends ILogger {
|
|
8253
|
+
readonly _serviceBrand: undefined;
|
|
8254
|
+
}
|
|
8255
|
+
|
|
8229
8256
|
interface IExtUri {
|
|
8230
8257
|
/**
|
|
8231
8258
|
* Compares two uris.
|
|
@@ -9865,6 +9892,11 @@ interface ITelemetryService {
|
|
|
9865
9892
|
setExperimentProperty(name: string, value: string): void;
|
|
9866
9893
|
readonly telemetryLevel: TelemetryLevel;
|
|
9867
9894
|
}
|
|
9895
|
+
interface ITelemetryEndpoint {
|
|
9896
|
+
id: string;
|
|
9897
|
+
aiKey: string;
|
|
9898
|
+
sendErrorTelemetry: boolean;
|
|
9899
|
+
}
|
|
9868
9900
|
declare const enum TelemetryLevel {
|
|
9869
9901
|
NONE = 0,
|
|
9870
9902
|
CRASH = 1,
|
|
@@ -16420,6 +16452,895 @@ declare class AudioCue {
|
|
|
16420
16452
|
private constructor();
|
|
16421
16453
|
}
|
|
16422
16454
|
|
|
16455
|
+
declare class DebugCompoundRoot {
|
|
16456
|
+
private stopped;
|
|
16457
|
+
private stopEmitter;
|
|
16458
|
+
onDidSessionStop: Event$1<void>;
|
|
16459
|
+
sessionStopped(): void;
|
|
16460
|
+
}
|
|
16461
|
+
|
|
16462
|
+
/**
|
|
16463
|
+
* Debug URI format
|
|
16464
|
+
*
|
|
16465
|
+
* a debug URI represents a Source object and the debug session where the Source comes from.
|
|
16466
|
+
*
|
|
16467
|
+
* debug:arbitrary_path?session=123e4567-e89b-12d3-a456-426655440000&ref=1016
|
|
16468
|
+
* \___/ \____________/ \__________________________________________/ \______/
|
|
16469
|
+
* | | | |
|
|
16470
|
+
* scheme source.path session id source.reference
|
|
16471
|
+
*
|
|
16472
|
+
*
|
|
16473
|
+
*/
|
|
16474
|
+
declare class Source {
|
|
16475
|
+
readonly uri: URI;
|
|
16476
|
+
available: boolean;
|
|
16477
|
+
raw: DebugProtocol.Source;
|
|
16478
|
+
constructor(raw_: DebugProtocol.Source | undefined, sessionId: string, uriIdentityService: IUriIdentityService, logService: ILogService);
|
|
16479
|
+
get name(): string;
|
|
16480
|
+
get origin(): string | undefined;
|
|
16481
|
+
get presentationHint(): "normal" | "emphasize" | "deemphasize" | undefined;
|
|
16482
|
+
get reference(): number | undefined;
|
|
16483
|
+
get inMemory(): boolean;
|
|
16484
|
+
openInEditor(editorService: IEditorService, selection: IRange, preserveFocus?: boolean, sideBySide?: boolean, pinned?: boolean): Promise<IEditorPane | undefined>;
|
|
16485
|
+
static getEncodedDebugData(modelUri: URI): {
|
|
16486
|
+
name: string;
|
|
16487
|
+
path: string;
|
|
16488
|
+
sessionId?: string;
|
|
16489
|
+
sourceReference?: number;
|
|
16490
|
+
};
|
|
16491
|
+
}
|
|
16492
|
+
|
|
16493
|
+
interface ITaskIdentifier {
|
|
16494
|
+
type: string;
|
|
16495
|
+
[name: string]: any;
|
|
16496
|
+
}
|
|
16497
|
+
|
|
16498
|
+
interface IRawModelUpdate {
|
|
16499
|
+
sessionId: string;
|
|
16500
|
+
threads: DebugProtocol.Thread[];
|
|
16501
|
+
stoppedDetails?: IRawStoppedDetails;
|
|
16502
|
+
}
|
|
16503
|
+
interface IRawStoppedDetails {
|
|
16504
|
+
reason?: string;
|
|
16505
|
+
description?: string;
|
|
16506
|
+
threadId?: number;
|
|
16507
|
+
text?: string;
|
|
16508
|
+
totalFrames?: number;
|
|
16509
|
+
allThreadsStopped?: boolean;
|
|
16510
|
+
framesErrorMessage?: string;
|
|
16511
|
+
hitBreakpointIds?: number[];
|
|
16512
|
+
}
|
|
16513
|
+
interface ITreeElement {
|
|
16514
|
+
getId(): string;
|
|
16515
|
+
}
|
|
16516
|
+
interface IReplElement extends ITreeElement {
|
|
16517
|
+
toString(includeSource?: boolean): string;
|
|
16518
|
+
readonly sourceData?: IReplElementSource;
|
|
16519
|
+
}
|
|
16520
|
+
interface IReplElementSource {
|
|
16521
|
+
readonly source: Source;
|
|
16522
|
+
readonly lineNumber: number;
|
|
16523
|
+
readonly column: number;
|
|
16524
|
+
}
|
|
16525
|
+
interface IExpressionContainer extends ITreeElement {
|
|
16526
|
+
readonly hasChildren: boolean;
|
|
16527
|
+
evaluateLazy(): Promise<void>;
|
|
16528
|
+
getChildren(): Promise<IExpression[]>;
|
|
16529
|
+
readonly reference?: number;
|
|
16530
|
+
readonly memoryReference?: string;
|
|
16531
|
+
readonly value: string;
|
|
16532
|
+
readonly type?: string;
|
|
16533
|
+
valueChanged?: boolean;
|
|
16534
|
+
readonly presentationHint?: DebugProtocol.VariablePresentationHint | undefined;
|
|
16535
|
+
}
|
|
16536
|
+
interface IExpression extends IExpressionContainer {
|
|
16537
|
+
name: string;
|
|
16538
|
+
}
|
|
16539
|
+
interface IDebugger {
|
|
16540
|
+
readonly type: string;
|
|
16541
|
+
createDebugAdapter(session: IDebugSession): Promise<IDebugAdapter>;
|
|
16542
|
+
runInTerminal(args: DebugProtocol.RunInTerminalRequestArguments, sessionId: string): Promise<number | undefined>;
|
|
16543
|
+
startDebugging(args: IConfig, parentSessionId: string): Promise<boolean>;
|
|
16544
|
+
getCustomTelemetryEndpoint(): ITelemetryEndpoint | undefined;
|
|
16545
|
+
getInitialConfigurationContent(initialConfigs?: IConfig[]): Promise<string>;
|
|
16546
|
+
}
|
|
16547
|
+
interface IDebuggerMetadata {
|
|
16548
|
+
label: string;
|
|
16549
|
+
type: string;
|
|
16550
|
+
strings?: {
|
|
16551
|
+
[key in DebuggerString]: string;
|
|
16552
|
+
};
|
|
16553
|
+
interestedInLanguage(languageId: string): boolean;
|
|
16554
|
+
}
|
|
16555
|
+
declare const enum State {
|
|
16556
|
+
Inactive = 0,
|
|
16557
|
+
Initializing = 1,
|
|
16558
|
+
Stopped = 2,
|
|
16559
|
+
Running = 3
|
|
16560
|
+
}
|
|
16561
|
+
interface AdapterEndEvent {
|
|
16562
|
+
error?: Error;
|
|
16563
|
+
sessionLengthInSeconds: number;
|
|
16564
|
+
emittedStopped: boolean;
|
|
16565
|
+
}
|
|
16566
|
+
interface LoadedSourceEvent {
|
|
16567
|
+
reason: 'new' | 'changed' | 'removed';
|
|
16568
|
+
source: Source;
|
|
16569
|
+
}
|
|
16570
|
+
type IDebugSessionReplMode = 'separate' | 'mergeWithParent';
|
|
16571
|
+
interface IDebugSessionOptions {
|
|
16572
|
+
noDebug?: boolean;
|
|
16573
|
+
parentSession?: IDebugSession;
|
|
16574
|
+
lifecycleManagedByParent?: boolean;
|
|
16575
|
+
repl?: IDebugSessionReplMode;
|
|
16576
|
+
compoundRoot?: DebugCompoundRoot;
|
|
16577
|
+
compact?: boolean;
|
|
16578
|
+
startedByUser?: boolean;
|
|
16579
|
+
saveBeforeRestart?: boolean;
|
|
16580
|
+
suppressDebugToolbar?: boolean;
|
|
16581
|
+
suppressDebugStatusbar?: boolean;
|
|
16582
|
+
suppressDebugView?: boolean;
|
|
16583
|
+
}
|
|
16584
|
+
interface IDataBreakpointInfoResponse {
|
|
16585
|
+
dataId: string | null;
|
|
16586
|
+
description: string;
|
|
16587
|
+
canPersist?: boolean;
|
|
16588
|
+
accessTypes?: DebugProtocol.DataBreakpointAccessType[];
|
|
16589
|
+
}
|
|
16590
|
+
interface IMemoryInvalidationEvent {
|
|
16591
|
+
fromOffset: number;
|
|
16592
|
+
toOffset: number;
|
|
16593
|
+
}
|
|
16594
|
+
declare const enum MemoryRangeType {
|
|
16595
|
+
Valid = 0,
|
|
16596
|
+
Unreadable = 1,
|
|
16597
|
+
Error = 2
|
|
16598
|
+
}
|
|
16599
|
+
interface IMemoryRange {
|
|
16600
|
+
type: MemoryRangeType;
|
|
16601
|
+
offset: number;
|
|
16602
|
+
length: number;
|
|
16603
|
+
}
|
|
16604
|
+
interface IValidMemoryRange extends IMemoryRange {
|
|
16605
|
+
type: MemoryRangeType.Valid;
|
|
16606
|
+
offset: number;
|
|
16607
|
+
length: number;
|
|
16608
|
+
data: VSBuffer;
|
|
16609
|
+
}
|
|
16610
|
+
interface IUnreadableMemoryRange extends IMemoryRange {
|
|
16611
|
+
type: MemoryRangeType.Unreadable;
|
|
16612
|
+
}
|
|
16613
|
+
interface IErrorMemoryRange extends IMemoryRange {
|
|
16614
|
+
type: MemoryRangeType.Error;
|
|
16615
|
+
error: string;
|
|
16616
|
+
}
|
|
16617
|
+
/**
|
|
16618
|
+
* Union type of memory that can be returned from read(). Since a read request
|
|
16619
|
+
* could encompass multiple previously-read ranges, multiple of these types
|
|
16620
|
+
* are possible to return.
|
|
16621
|
+
*/
|
|
16622
|
+
type MemoryRange = IValidMemoryRange | IUnreadableMemoryRange | IErrorMemoryRange;
|
|
16623
|
+
/**
|
|
16624
|
+
* An IMemoryRegion corresponds to a contiguous range of memory referred to
|
|
16625
|
+
* by a DAP `memoryReference`.
|
|
16626
|
+
*/
|
|
16627
|
+
interface IMemoryRegion extends IDisposable {
|
|
16628
|
+
/**
|
|
16629
|
+
* Event that fires when memory changes. Can be a result of memory events or
|
|
16630
|
+
* `write` requests.
|
|
16631
|
+
*/
|
|
16632
|
+
readonly onDidInvalidate: Event$1<IMemoryInvalidationEvent>;
|
|
16633
|
+
/**
|
|
16634
|
+
* Whether writes are supported on this memory region.
|
|
16635
|
+
*/
|
|
16636
|
+
readonly writable: boolean;
|
|
16637
|
+
/**
|
|
16638
|
+
* Requests memory ranges from the debug adapter. It returns a list of memory
|
|
16639
|
+
* ranges that overlap (but may exceed!) the given offset. Use the `offset`
|
|
16640
|
+
* and `length` of each range for display.
|
|
16641
|
+
*/
|
|
16642
|
+
read(fromOffset: number, toOffset: number): Promise<MemoryRange[]>;
|
|
16643
|
+
/**
|
|
16644
|
+
* Writes memory to the debug adapter at the given offset.
|
|
16645
|
+
*/
|
|
16646
|
+
write(offset: number, data: VSBuffer): Promise<number>;
|
|
16647
|
+
}
|
|
16648
|
+
/** Data that can be inserted in {@link IDebugSession.appendToRepl} */
|
|
16649
|
+
interface INewReplElementData {
|
|
16650
|
+
/**
|
|
16651
|
+
* Output string to display
|
|
16652
|
+
*/
|
|
16653
|
+
output: string;
|
|
16654
|
+
/**
|
|
16655
|
+
* Expression data to display. Will result in the item being expandable in
|
|
16656
|
+
* the REPL. Its value will be used if {@link output} is not provided.
|
|
16657
|
+
*/
|
|
16658
|
+
expression?: IExpression;
|
|
16659
|
+
/**
|
|
16660
|
+
* Output severity.
|
|
16661
|
+
*/
|
|
16662
|
+
sev: Severity$1;
|
|
16663
|
+
/**
|
|
16664
|
+
* Originating location.
|
|
16665
|
+
*/
|
|
16666
|
+
source?: IReplElementSource;
|
|
16667
|
+
}
|
|
16668
|
+
interface IDebugSession extends ITreeElement {
|
|
16669
|
+
readonly configuration: IConfig;
|
|
16670
|
+
readonly unresolvedConfiguration: IConfig | undefined;
|
|
16671
|
+
readonly state: State;
|
|
16672
|
+
readonly root: IWorkspaceFolder | undefined;
|
|
16673
|
+
readonly parentSession: IDebugSession | undefined;
|
|
16674
|
+
readonly subId: string | undefined;
|
|
16675
|
+
readonly compact: boolean;
|
|
16676
|
+
readonly compoundRoot: DebugCompoundRoot | undefined;
|
|
16677
|
+
readonly saveBeforeRestart: boolean;
|
|
16678
|
+
readonly name: string;
|
|
16679
|
+
readonly autoExpandLazyVariables: boolean;
|
|
16680
|
+
readonly suppressDebugToolbar: boolean;
|
|
16681
|
+
readonly suppressDebugStatusbar: boolean;
|
|
16682
|
+
readonly suppressDebugView: boolean;
|
|
16683
|
+
readonly lifecycleManagedByParent: boolean;
|
|
16684
|
+
setSubId(subId: string | undefined): void;
|
|
16685
|
+
getMemory(memoryReference: string): IMemoryRegion;
|
|
16686
|
+
setName(name: string): void;
|
|
16687
|
+
readonly onDidChangeName: Event$1<string>;
|
|
16688
|
+
getLabel(): string;
|
|
16689
|
+
getSourceForUri(modelUri: URI): Source | undefined;
|
|
16690
|
+
getSource(raw?: DebugProtocol.Source): Source;
|
|
16691
|
+
setConfiguration(configuration: {
|
|
16692
|
+
resolved: IConfig;
|
|
16693
|
+
unresolved: IConfig | undefined;
|
|
16694
|
+
}): void;
|
|
16695
|
+
rawUpdate(data: IRawModelUpdate): void;
|
|
16696
|
+
getThread(threadId: number): IThread | undefined;
|
|
16697
|
+
getAllThreads(): IThread[];
|
|
16698
|
+
clearThreads(removeThreads: boolean, reference?: number): void;
|
|
16699
|
+
getStoppedDetails(): IRawStoppedDetails | undefined;
|
|
16700
|
+
getReplElements(): IReplElement[];
|
|
16701
|
+
hasSeparateRepl(): boolean;
|
|
16702
|
+
removeReplExpressions(): void;
|
|
16703
|
+
addReplExpression(stackFrame: IStackFrame | undefined, name: string): Promise<void>;
|
|
16704
|
+
appendToRepl(data: INewReplElementData): void;
|
|
16705
|
+
readonly onDidEndAdapter: Event$1<AdapterEndEvent | undefined>;
|
|
16706
|
+
readonly onDidChangeState: Event$1<void>;
|
|
16707
|
+
readonly onDidChangeReplElements: Event$1<void>;
|
|
16708
|
+
readonly capabilities: DebugProtocol.Capabilities;
|
|
16709
|
+
readonly onDidLoadedSource: Event$1<LoadedSourceEvent>;
|
|
16710
|
+
readonly onDidCustomEvent: Event$1<DebugProtocol.Event>;
|
|
16711
|
+
readonly onDidProgressStart: Event$1<DebugProtocol.ProgressStartEvent>;
|
|
16712
|
+
readonly onDidProgressUpdate: Event$1<DebugProtocol.ProgressUpdateEvent>;
|
|
16713
|
+
readonly onDidProgressEnd: Event$1<DebugProtocol.ProgressEndEvent>;
|
|
16714
|
+
readonly onDidInvalidateMemory: Event$1<DebugProtocol.MemoryEvent>;
|
|
16715
|
+
initialize(dbgr: IDebugger): Promise<void>;
|
|
16716
|
+
launchOrAttach(config: IConfig): Promise<void>;
|
|
16717
|
+
restart(): Promise<void>;
|
|
16718
|
+
terminate(restart?: boolean): Promise<void>;
|
|
16719
|
+
disconnect(restart?: boolean, suspend?: boolean): Promise<void>;
|
|
16720
|
+
sendBreakpoints(modelUri: URI, bpts: IBreakpoint[], sourceModified: boolean): Promise<void>;
|
|
16721
|
+
sendFunctionBreakpoints(fbps: IFunctionBreakpoint[]): Promise<void>;
|
|
16722
|
+
dataBreakpointInfo(name: string, variablesReference?: number): Promise<IDataBreakpointInfoResponse | undefined>;
|
|
16723
|
+
sendDataBreakpoints(dbps: IDataBreakpoint[]): Promise<void>;
|
|
16724
|
+
sendInstructionBreakpoints(dbps: IInstructionBreakpoint[]): Promise<void>;
|
|
16725
|
+
sendExceptionBreakpoints(exbpts: IExceptionBreakpoint[]): Promise<void>;
|
|
16726
|
+
breakpointsLocations(uri: URI, lineNumber: number): Promise<IPosition[]>;
|
|
16727
|
+
getDebugProtocolBreakpoint(breakpointId: string): DebugProtocol.Breakpoint | undefined;
|
|
16728
|
+
stackTrace(threadId: number, startFrame: number, levels: number, token: CancellationToken): Promise<DebugProtocol.StackTraceResponse | undefined>;
|
|
16729
|
+
exceptionInfo(threadId: number): Promise<IExceptionInfo | undefined>;
|
|
16730
|
+
scopes(frameId: number, threadId: number): Promise<DebugProtocol.ScopesResponse | undefined>;
|
|
16731
|
+
variables(variablesReference: number, threadId: number | undefined, filter: 'indexed' | 'named' | undefined, start: number | undefined, count: number | undefined): Promise<DebugProtocol.VariablesResponse | undefined>;
|
|
16732
|
+
evaluate(expression: string, frameId?: number, context?: string): Promise<DebugProtocol.EvaluateResponse | undefined>;
|
|
16733
|
+
customRequest(request: string, args: any): Promise<DebugProtocol.Response | undefined>;
|
|
16734
|
+
cancel(progressId: string): Promise<DebugProtocol.CancelResponse | undefined>;
|
|
16735
|
+
disassemble(memoryReference: string, offset: number, instructionOffset: number, instructionCount: number): Promise<DebugProtocol.DisassembledInstruction[] | undefined>;
|
|
16736
|
+
readMemory(memoryReference: string, offset: number, count: number): Promise<DebugProtocol.ReadMemoryResponse | undefined>;
|
|
16737
|
+
writeMemory(memoryReference: string, offset: number, data: string, allowPartial?: boolean): Promise<DebugProtocol.WriteMemoryResponse | undefined>;
|
|
16738
|
+
restartFrame(frameId: number, threadId: number): Promise<void>;
|
|
16739
|
+
next(threadId: number, granularity?: DebugProtocol.SteppingGranularity): Promise<void>;
|
|
16740
|
+
stepIn(threadId: number, targetId?: number, granularity?: DebugProtocol.SteppingGranularity): Promise<void>;
|
|
16741
|
+
stepInTargets(frameId: number): Promise<DebugProtocol.StepInTarget[] | undefined>;
|
|
16742
|
+
stepOut(threadId: number, granularity?: DebugProtocol.SteppingGranularity): Promise<void>;
|
|
16743
|
+
stepBack(threadId: number, granularity?: DebugProtocol.SteppingGranularity): Promise<void>;
|
|
16744
|
+
continue(threadId: number): Promise<void>;
|
|
16745
|
+
reverseContinue(threadId: number): Promise<void>;
|
|
16746
|
+
pause(threadId: number): Promise<void>;
|
|
16747
|
+
terminateThreads(threadIds: number[]): Promise<void>;
|
|
16748
|
+
completions(frameId: number | undefined, threadId: number, text: string, position: Position$1, overwriteBefore: number, token: CancellationToken): Promise<DebugProtocol.CompletionsResponse | undefined>;
|
|
16749
|
+
setVariable(variablesReference: number | undefined, name: string, value: string): Promise<DebugProtocol.SetVariableResponse | undefined>;
|
|
16750
|
+
setExpression(frameId: number, expression: string, value: string): Promise<DebugProtocol.SetExpressionResponse | undefined>;
|
|
16751
|
+
loadSource(resource: URI): Promise<DebugProtocol.SourceResponse | undefined>;
|
|
16752
|
+
getLoadedSources(): Promise<Source[]>;
|
|
16753
|
+
gotoTargets(source: DebugProtocol.Source, line: number, column?: number): Promise<DebugProtocol.GotoTargetsResponse | undefined>;
|
|
16754
|
+
goto(threadId: number, targetId: number): Promise<DebugProtocol.GotoResponse | undefined>;
|
|
16755
|
+
}
|
|
16756
|
+
interface IThread extends ITreeElement {
|
|
16757
|
+
/**
|
|
16758
|
+
* Process the thread belongs to
|
|
16759
|
+
*/
|
|
16760
|
+
readonly session: IDebugSession;
|
|
16761
|
+
/**
|
|
16762
|
+
* Id of the thread generated by the debug adapter backend.
|
|
16763
|
+
*/
|
|
16764
|
+
readonly threadId: number;
|
|
16765
|
+
/**
|
|
16766
|
+
* Name of the thread.
|
|
16767
|
+
*/
|
|
16768
|
+
readonly name: string;
|
|
16769
|
+
/**
|
|
16770
|
+
* Information about the current thread stop event. Undefined if thread is not stopped.
|
|
16771
|
+
*/
|
|
16772
|
+
readonly stoppedDetails: IRawStoppedDetails | undefined;
|
|
16773
|
+
/**
|
|
16774
|
+
* Information about the exception if an 'exception' stopped event raised and DA supports the 'exceptionInfo' request, otherwise undefined.
|
|
16775
|
+
*/
|
|
16776
|
+
readonly exceptionInfo: Promise<IExceptionInfo | undefined>;
|
|
16777
|
+
readonly stateLabel: string;
|
|
16778
|
+
/**
|
|
16779
|
+
* Gets the callstack if it has already been received from the debug
|
|
16780
|
+
* adapter.
|
|
16781
|
+
*/
|
|
16782
|
+
getCallStack(): ReadonlyArray<IStackFrame>;
|
|
16783
|
+
/**
|
|
16784
|
+
* Gets the top stack frame that is not hidden if the callstack has already been received from the debug adapter
|
|
16785
|
+
*/
|
|
16786
|
+
getTopStackFrame(): IStackFrame | undefined;
|
|
16787
|
+
/**
|
|
16788
|
+
* Invalidates the callstack cache
|
|
16789
|
+
*/
|
|
16790
|
+
clearCallStack(): void;
|
|
16791
|
+
/**
|
|
16792
|
+
* Indicates whether this thread is stopped. The callstack for stopped
|
|
16793
|
+
* threads can be retrieved from the debug adapter.
|
|
16794
|
+
*/
|
|
16795
|
+
readonly stopped: boolean;
|
|
16796
|
+
next(granularity?: DebugProtocol.SteppingGranularity): Promise<any>;
|
|
16797
|
+
stepIn(granularity?: DebugProtocol.SteppingGranularity): Promise<any>;
|
|
16798
|
+
stepOut(granularity?: DebugProtocol.SteppingGranularity): Promise<any>;
|
|
16799
|
+
stepBack(granularity?: DebugProtocol.SteppingGranularity): Promise<any>;
|
|
16800
|
+
continue(): Promise<any>;
|
|
16801
|
+
pause(): Promise<any>;
|
|
16802
|
+
terminate(): Promise<any>;
|
|
16803
|
+
reverseContinue(): Promise<any>;
|
|
16804
|
+
}
|
|
16805
|
+
interface IScope extends IExpressionContainer {
|
|
16806
|
+
readonly name: string;
|
|
16807
|
+
readonly expensive: boolean;
|
|
16808
|
+
readonly range?: IRange;
|
|
16809
|
+
readonly hasChildren: boolean;
|
|
16810
|
+
}
|
|
16811
|
+
interface IStackFrame extends ITreeElement {
|
|
16812
|
+
readonly thread: IThread;
|
|
16813
|
+
readonly name: string;
|
|
16814
|
+
readonly presentationHint: string | undefined;
|
|
16815
|
+
readonly frameId: number;
|
|
16816
|
+
readonly range: IRange;
|
|
16817
|
+
readonly source: Source;
|
|
16818
|
+
readonly canRestart: boolean;
|
|
16819
|
+
readonly instructionPointerReference?: string;
|
|
16820
|
+
getScopes(): Promise<IScope[]>;
|
|
16821
|
+
getMostSpecificScopes(range: IRange): Promise<ReadonlyArray<IScope>>;
|
|
16822
|
+
forgetScopes(): void;
|
|
16823
|
+
restart(): Promise<any>;
|
|
16824
|
+
toString(): string;
|
|
16825
|
+
openInEditor(editorService: IEditorService, preserveFocus?: boolean, sideBySide?: boolean, pinned?: boolean): Promise<IEditorPane | undefined>;
|
|
16826
|
+
equals(other: IStackFrame): boolean;
|
|
16827
|
+
}
|
|
16828
|
+
interface IEnablement extends ITreeElement {
|
|
16829
|
+
readonly enabled: boolean;
|
|
16830
|
+
}
|
|
16831
|
+
interface IBreakpointData {
|
|
16832
|
+
readonly id?: string;
|
|
16833
|
+
readonly lineNumber: number;
|
|
16834
|
+
readonly column?: number;
|
|
16835
|
+
readonly enabled?: boolean;
|
|
16836
|
+
readonly condition?: string;
|
|
16837
|
+
readonly logMessage?: string;
|
|
16838
|
+
readonly hitCondition?: string;
|
|
16839
|
+
}
|
|
16840
|
+
interface IBreakpointUpdateData {
|
|
16841
|
+
readonly condition?: string;
|
|
16842
|
+
readonly hitCondition?: string;
|
|
16843
|
+
readonly logMessage?: string;
|
|
16844
|
+
readonly lineNumber?: number;
|
|
16845
|
+
readonly column?: number;
|
|
16846
|
+
}
|
|
16847
|
+
interface IBaseBreakpoint extends IEnablement {
|
|
16848
|
+
readonly condition?: string;
|
|
16849
|
+
readonly hitCondition?: string;
|
|
16850
|
+
readonly logMessage?: string;
|
|
16851
|
+
readonly verified: boolean;
|
|
16852
|
+
readonly supported: boolean;
|
|
16853
|
+
readonly message?: string;
|
|
16854
|
+
readonly sessionsThatVerified: string[];
|
|
16855
|
+
getIdFromAdapter(sessionId: string): number | undefined;
|
|
16856
|
+
}
|
|
16857
|
+
interface IBreakpoint extends IBaseBreakpoint {
|
|
16858
|
+
readonly uri: URI;
|
|
16859
|
+
readonly lineNumber: number;
|
|
16860
|
+
readonly endLineNumber?: number;
|
|
16861
|
+
readonly column?: number;
|
|
16862
|
+
readonly endColumn?: number;
|
|
16863
|
+
readonly adapterData: any;
|
|
16864
|
+
readonly sessionAgnosticData: {
|
|
16865
|
+
lineNumber: number;
|
|
16866
|
+
column: number | undefined;
|
|
16867
|
+
};
|
|
16868
|
+
}
|
|
16869
|
+
interface IFunctionBreakpoint extends IBaseBreakpoint {
|
|
16870
|
+
readonly name: string;
|
|
16871
|
+
}
|
|
16872
|
+
interface IExceptionBreakpoint extends IBaseBreakpoint {
|
|
16873
|
+
readonly filter: string;
|
|
16874
|
+
readonly label: string;
|
|
16875
|
+
readonly description: string | undefined;
|
|
16876
|
+
}
|
|
16877
|
+
interface IDataBreakpoint extends IBaseBreakpoint {
|
|
16878
|
+
readonly description: string;
|
|
16879
|
+
readonly dataId: string;
|
|
16880
|
+
readonly canPersist: boolean;
|
|
16881
|
+
readonly accessType: DebugProtocol.DataBreakpointAccessType;
|
|
16882
|
+
}
|
|
16883
|
+
interface IInstructionBreakpoint extends IBaseBreakpoint {
|
|
16884
|
+
readonly instructionReference: string;
|
|
16885
|
+
readonly offset?: number;
|
|
16886
|
+
}
|
|
16887
|
+
interface IExceptionInfo {
|
|
16888
|
+
readonly id?: string;
|
|
16889
|
+
readonly description?: string;
|
|
16890
|
+
readonly breakMode: string | null;
|
|
16891
|
+
readonly details?: DebugProtocol.ExceptionDetails;
|
|
16892
|
+
}
|
|
16893
|
+
interface IViewModel extends ITreeElement {
|
|
16894
|
+
/**
|
|
16895
|
+
* Returns the focused debug session or undefined if no session is stopped.
|
|
16896
|
+
*/
|
|
16897
|
+
readonly focusedSession: IDebugSession | undefined;
|
|
16898
|
+
/**
|
|
16899
|
+
* Returns the focused thread or undefined if no thread is stopped.
|
|
16900
|
+
*/
|
|
16901
|
+
readonly focusedThread: IThread | undefined;
|
|
16902
|
+
/**
|
|
16903
|
+
* Returns the focused stack frame or undefined if there are no stack frames.
|
|
16904
|
+
*/
|
|
16905
|
+
readonly focusedStackFrame: IStackFrame | undefined;
|
|
16906
|
+
getSelectedExpression(): {
|
|
16907
|
+
expression: IExpression;
|
|
16908
|
+
settingWatch: boolean;
|
|
16909
|
+
} | undefined;
|
|
16910
|
+
setSelectedExpression(expression: IExpression | undefined, settingWatch: boolean): void;
|
|
16911
|
+
updateViews(): void;
|
|
16912
|
+
isMultiSessionView(): boolean;
|
|
16913
|
+
onDidFocusSession: Event$1<IDebugSession | undefined>;
|
|
16914
|
+
onDidFocusStackFrame: Event$1<{
|
|
16915
|
+
stackFrame: IStackFrame | undefined;
|
|
16916
|
+
explicit: boolean;
|
|
16917
|
+
}>;
|
|
16918
|
+
onDidSelectExpression: Event$1<{
|
|
16919
|
+
expression: IExpression;
|
|
16920
|
+
settingWatch: boolean;
|
|
16921
|
+
} | undefined>;
|
|
16922
|
+
onDidEvaluateLazyExpression: Event$1<IExpressionContainer>;
|
|
16923
|
+
onWillUpdateViews: Event$1<void>;
|
|
16924
|
+
evaluateLazyExpression(expression: IExpressionContainer): void;
|
|
16925
|
+
}
|
|
16926
|
+
interface IEvaluate {
|
|
16927
|
+
evaluate(session: IDebugSession, stackFrame: IStackFrame, context: string): Promise<void>;
|
|
16928
|
+
}
|
|
16929
|
+
interface IDebugModel extends ITreeElement {
|
|
16930
|
+
getSession(sessionId: string | undefined, includeInactive?: boolean): IDebugSession | undefined;
|
|
16931
|
+
getSessions(includeInactive?: boolean): IDebugSession[];
|
|
16932
|
+
getBreakpoints(filter?: {
|
|
16933
|
+
uri?: URI;
|
|
16934
|
+
lineNumber?: number;
|
|
16935
|
+
column?: number;
|
|
16936
|
+
enabledOnly?: boolean;
|
|
16937
|
+
}): ReadonlyArray<IBreakpoint>;
|
|
16938
|
+
areBreakpointsActivated(): boolean;
|
|
16939
|
+
getFunctionBreakpoints(): ReadonlyArray<IFunctionBreakpoint>;
|
|
16940
|
+
getDataBreakpoints(): ReadonlyArray<IDataBreakpoint>;
|
|
16941
|
+
/**
|
|
16942
|
+
* Returns list of all exception breakpoints.
|
|
16943
|
+
*/
|
|
16944
|
+
getExceptionBreakpoints(): ReadonlyArray<IExceptionBreakpoint>;
|
|
16945
|
+
/**
|
|
16946
|
+
* Returns list of exception breakpoints for the given session
|
|
16947
|
+
* @param sessionId Session id. If falsy, returns the breakpoints from the last set fallback session.
|
|
16948
|
+
*/
|
|
16949
|
+
getExceptionBreakpointsForSession(sessionId?: string): ReadonlyArray<IExceptionBreakpoint>;
|
|
16950
|
+
getInstructionBreakpoints(): ReadonlyArray<IInstructionBreakpoint>;
|
|
16951
|
+
getWatchExpressions(): ReadonlyArray<IExpression & IEvaluate>;
|
|
16952
|
+
onDidChangeBreakpoints: Event$1<IBreakpointsChangeEvent | undefined>;
|
|
16953
|
+
onDidChangeCallStack: Event$1<void>;
|
|
16954
|
+
onDidChangeWatchExpressions: Event$1<IExpression | undefined>;
|
|
16955
|
+
fetchCallstack(thread: IThread, levels?: number): Promise<void>;
|
|
16956
|
+
}
|
|
16957
|
+
/**
|
|
16958
|
+
* An event describing a change to the set of [breakpoints](#debug.Breakpoint).
|
|
16959
|
+
*/
|
|
16960
|
+
interface IBreakpointsChangeEvent {
|
|
16961
|
+
added?: Array<IBreakpoint | IFunctionBreakpoint | IDataBreakpoint | IInstructionBreakpoint>;
|
|
16962
|
+
removed?: Array<IBreakpoint | IFunctionBreakpoint | IDataBreakpoint | IInstructionBreakpoint>;
|
|
16963
|
+
changed?: Array<IBreakpoint | IFunctionBreakpoint | IDataBreakpoint | IInstructionBreakpoint>;
|
|
16964
|
+
sessionOnly: boolean;
|
|
16965
|
+
}
|
|
16966
|
+
interface IEnvConfig {
|
|
16967
|
+
internalConsoleOptions?: 'neverOpen' | 'openOnSessionStart' | 'openOnFirstSessionStart';
|
|
16968
|
+
preRestartTask?: string | ITaskIdentifier;
|
|
16969
|
+
postRestartTask?: string | ITaskIdentifier;
|
|
16970
|
+
preLaunchTask?: string | ITaskIdentifier;
|
|
16971
|
+
postDebugTask?: string | ITaskIdentifier;
|
|
16972
|
+
debugServer?: number;
|
|
16973
|
+
noDebug?: boolean;
|
|
16974
|
+
suppressMultipleSessionWarning?: boolean;
|
|
16975
|
+
}
|
|
16976
|
+
interface IConfigPresentation {
|
|
16977
|
+
hidden?: boolean;
|
|
16978
|
+
group?: string;
|
|
16979
|
+
order?: number;
|
|
16980
|
+
}
|
|
16981
|
+
interface IConfig extends IEnvConfig {
|
|
16982
|
+
type: string;
|
|
16983
|
+
request: string;
|
|
16984
|
+
name: string;
|
|
16985
|
+
presentation?: IConfigPresentation;
|
|
16986
|
+
windows?: IEnvConfig;
|
|
16987
|
+
osx?: IEnvConfig;
|
|
16988
|
+
linux?: IEnvConfig;
|
|
16989
|
+
__configurationTarget?: ConfigurationTarget;
|
|
16990
|
+
__sessionId?: string;
|
|
16991
|
+
__restart?: any;
|
|
16992
|
+
__autoAttach?: boolean;
|
|
16993
|
+
port?: number;
|
|
16994
|
+
}
|
|
16995
|
+
interface ICompound {
|
|
16996
|
+
name: string;
|
|
16997
|
+
stopAll?: boolean;
|
|
16998
|
+
preLaunchTask?: string | ITaskIdentifier;
|
|
16999
|
+
configurations: (string | {
|
|
17000
|
+
name: string;
|
|
17001
|
+
folder: string;
|
|
17002
|
+
})[];
|
|
17003
|
+
presentation?: IConfigPresentation;
|
|
17004
|
+
}
|
|
17005
|
+
interface IDebugAdapter extends IDisposable {
|
|
17006
|
+
readonly onError: Event$1<Error>;
|
|
17007
|
+
readonly onExit: Event$1<number | null>;
|
|
17008
|
+
onRequest(callback: (request: DebugProtocol.Request) => void): void;
|
|
17009
|
+
onEvent(callback: (event: DebugProtocol.Event) => void): void;
|
|
17010
|
+
startSession(): Promise<void>;
|
|
17011
|
+
sendMessage(message: DebugProtocol.ProtocolMessage): void;
|
|
17012
|
+
sendResponse(response: DebugProtocol.Response): void;
|
|
17013
|
+
sendRequest(command: string, args: any, clb: (result: DebugProtocol.Response) => void, timeout?: number): number;
|
|
17014
|
+
stopSession(): Promise<void>;
|
|
17015
|
+
}
|
|
17016
|
+
interface IDebugAdapterFactory extends ITerminalLauncher {
|
|
17017
|
+
createDebugAdapter(session: IDebugSession): IDebugAdapter;
|
|
17018
|
+
substituteVariables(folder: IWorkspaceFolder | undefined, config: IConfig): Promise<IConfig>;
|
|
17019
|
+
}
|
|
17020
|
+
interface IDebugAdapterExecutableOptions {
|
|
17021
|
+
cwd?: string;
|
|
17022
|
+
env?: {
|
|
17023
|
+
[key: string]: string;
|
|
17024
|
+
};
|
|
17025
|
+
}
|
|
17026
|
+
interface IDebugAdapterExecutable {
|
|
17027
|
+
readonly type: 'executable';
|
|
17028
|
+
readonly command: string;
|
|
17029
|
+
readonly args: string[];
|
|
17030
|
+
readonly options?: IDebugAdapterExecutableOptions;
|
|
17031
|
+
}
|
|
17032
|
+
interface IDebugAdapterServer {
|
|
17033
|
+
readonly type: 'server';
|
|
17034
|
+
readonly port: number;
|
|
17035
|
+
readonly host?: string;
|
|
17036
|
+
}
|
|
17037
|
+
interface IDebugAdapterNamedPipeServer {
|
|
17038
|
+
readonly type: 'pipeServer';
|
|
17039
|
+
readonly path: string;
|
|
17040
|
+
}
|
|
17041
|
+
interface IDebugAdapterInlineImpl extends IDisposable {
|
|
17042
|
+
readonly onDidSendMessage: Event$1<DebugProtocol.Message>;
|
|
17043
|
+
handleMessage(message: DebugProtocol.Message): void;
|
|
17044
|
+
}
|
|
17045
|
+
interface IDebugAdapterImpl {
|
|
17046
|
+
readonly type: 'implementation';
|
|
17047
|
+
readonly implementation: IDebugAdapterInlineImpl;
|
|
17048
|
+
}
|
|
17049
|
+
type IAdapterDescriptor = IDebugAdapterExecutable | IDebugAdapterServer | IDebugAdapterNamedPipeServer | IDebugAdapterImpl;
|
|
17050
|
+
declare enum DebugConfigurationProviderTriggerKind {
|
|
17051
|
+
/**
|
|
17052
|
+
* `DebugConfigurationProvider.provideDebugConfigurations` is called to provide the initial debug configurations for a newly created launch.json.
|
|
17053
|
+
*/
|
|
17054
|
+
Initial = 1,
|
|
17055
|
+
/**
|
|
17056
|
+
* `DebugConfigurationProvider.provideDebugConfigurations` is called to provide dynamically generated debug configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
|
|
17057
|
+
*/
|
|
17058
|
+
Dynamic = 2
|
|
17059
|
+
}
|
|
17060
|
+
interface IDebugConfigurationProvider {
|
|
17061
|
+
readonly type: string;
|
|
17062
|
+
readonly triggerKind: DebugConfigurationProviderTriggerKind;
|
|
17063
|
+
resolveDebugConfiguration?(folderUri: URI | undefined, debugConfiguration: IConfig, token: CancellationToken): Promise<IConfig | null | undefined>;
|
|
17064
|
+
resolveDebugConfigurationWithSubstitutedVariables?(folderUri: URI | undefined, debugConfiguration: IConfig, token: CancellationToken): Promise<IConfig | null | undefined>;
|
|
17065
|
+
provideDebugConfigurations?(folderUri: URI | undefined, token: CancellationToken): Promise<IConfig[]>;
|
|
17066
|
+
}
|
|
17067
|
+
interface IDebugAdapterDescriptorFactory {
|
|
17068
|
+
readonly type: string;
|
|
17069
|
+
createDebugAdapterDescriptor(session: IDebugSession): Promise<IAdapterDescriptor>;
|
|
17070
|
+
}
|
|
17071
|
+
interface ITerminalLauncher {
|
|
17072
|
+
runInTerminal(args: DebugProtocol.RunInTerminalRequestArguments, sessionId: string): Promise<number | undefined>;
|
|
17073
|
+
}
|
|
17074
|
+
interface IConfigurationManager {
|
|
17075
|
+
/**
|
|
17076
|
+
* Returns an object containing the selected launch configuration and the selected configuration name. Both these fields can be null (no folder workspace).
|
|
17077
|
+
*/
|
|
17078
|
+
readonly selectedConfiguration: {
|
|
17079
|
+
launch: ILaunch | undefined;
|
|
17080
|
+
getConfig: () => Promise<IConfig | undefined>;
|
|
17081
|
+
name: string | undefined;
|
|
17082
|
+
type: string | undefined;
|
|
17083
|
+
};
|
|
17084
|
+
selectConfiguration(launch: ILaunch | undefined, name?: string, config?: IConfig, dynamicConfigOptions?: {
|
|
17085
|
+
type?: string;
|
|
17086
|
+
}): Promise<void>;
|
|
17087
|
+
getLaunches(): ReadonlyArray<ILaunch>;
|
|
17088
|
+
getLaunch(workspaceUri: URI | undefined): ILaunch | undefined;
|
|
17089
|
+
getAllConfigurations(): {
|
|
17090
|
+
launch: ILaunch;
|
|
17091
|
+
name: string;
|
|
17092
|
+
presentation?: IConfigPresentation;
|
|
17093
|
+
}[];
|
|
17094
|
+
removeRecentDynamicConfigurations(name: string, type: string): void;
|
|
17095
|
+
getRecentDynamicConfigurations(): {
|
|
17096
|
+
name: string;
|
|
17097
|
+
type: string;
|
|
17098
|
+
}[];
|
|
17099
|
+
/**
|
|
17100
|
+
* Allows to register on change of selected debug configuration.
|
|
17101
|
+
*/
|
|
17102
|
+
onDidSelectConfiguration: Event$1<void>;
|
|
17103
|
+
hasDebugConfigurationProvider(debugType: string): boolean;
|
|
17104
|
+
getDynamicProviders(): Promise<{
|
|
17105
|
+
label: string;
|
|
17106
|
+
type: string;
|
|
17107
|
+
pick: () => Promise<{
|
|
17108
|
+
launch: ILaunch;
|
|
17109
|
+
config: IConfig;
|
|
17110
|
+
} | undefined>;
|
|
17111
|
+
}[]>;
|
|
17112
|
+
registerDebugConfigurationProvider(debugConfigurationProvider: IDebugConfigurationProvider): IDisposable;
|
|
17113
|
+
unregisterDebugConfigurationProvider(debugConfigurationProvider: IDebugConfigurationProvider): void;
|
|
17114
|
+
resolveConfigurationByProviders(folderUri: URI | undefined, type: string | undefined, debugConfiguration: any, token: CancellationToken): Promise<any>;
|
|
17115
|
+
}
|
|
17116
|
+
declare enum DebuggerString {
|
|
17117
|
+
UnverifiedBreakpoints = "unverifiedBreakpoints"
|
|
17118
|
+
}
|
|
17119
|
+
interface IAdapterManager {
|
|
17120
|
+
onDidRegisterDebugger: Event$1<void>;
|
|
17121
|
+
hasEnabledDebuggers(): boolean;
|
|
17122
|
+
getDebugAdapterDescriptor(session: IDebugSession): Promise<IAdapterDescriptor | undefined>;
|
|
17123
|
+
getDebuggerLabel(type: string): string | undefined;
|
|
17124
|
+
someDebuggerInterestedInLanguage(language: string): boolean;
|
|
17125
|
+
getDebugger(type: string): IDebuggerMetadata | undefined;
|
|
17126
|
+
activateDebuggers(activationEvent: string, debugType?: string): Promise<void>;
|
|
17127
|
+
registerDebugAdapterFactory(debugTypes: string[], debugAdapterFactory: IDebugAdapterFactory): IDisposable;
|
|
17128
|
+
createDebugAdapter(session: IDebugSession): IDebugAdapter | undefined;
|
|
17129
|
+
registerDebugAdapterDescriptorFactory(debugAdapterDescriptorFactory: IDebugAdapterDescriptorFactory): IDisposable;
|
|
17130
|
+
unregisterDebugAdapterDescriptorFactory(debugAdapterDescriptorFactory: IDebugAdapterDescriptorFactory): void;
|
|
17131
|
+
substituteVariables(debugType: string, folder: IWorkspaceFolder | undefined, config: IConfig): Promise<IConfig>;
|
|
17132
|
+
runInTerminal(debugType: string, args: DebugProtocol.RunInTerminalRequestArguments, sessionId: string): Promise<number | undefined>;
|
|
17133
|
+
getEnabledDebugger(type: string): (IDebugger & IDebuggerMetadata) | undefined;
|
|
17134
|
+
guessDebugger(gettingConfigurations: boolean): Promise<(IDebugger & IDebuggerMetadata) | undefined>;
|
|
17135
|
+
get onDidDebuggersExtPointRead(): Event$1<void>;
|
|
17136
|
+
}
|
|
17137
|
+
interface ILaunch {
|
|
17138
|
+
/**
|
|
17139
|
+
* Resource pointing to the launch.json this object is wrapping.
|
|
17140
|
+
*/
|
|
17141
|
+
readonly uri: URI;
|
|
17142
|
+
/**
|
|
17143
|
+
* Name of the launch.
|
|
17144
|
+
*/
|
|
17145
|
+
readonly name: string;
|
|
17146
|
+
/**
|
|
17147
|
+
* Workspace of the launch. Can be undefined.
|
|
17148
|
+
*/
|
|
17149
|
+
readonly workspace: IWorkspaceFolder | undefined;
|
|
17150
|
+
/**
|
|
17151
|
+
* Should this launch be shown in the debug dropdown.
|
|
17152
|
+
*/
|
|
17153
|
+
readonly hidden: boolean;
|
|
17154
|
+
/**
|
|
17155
|
+
* Returns a configuration with the specified name.
|
|
17156
|
+
* Returns undefined if there is no configuration with the specified name.
|
|
17157
|
+
*/
|
|
17158
|
+
getConfiguration(name: string): IConfig | undefined;
|
|
17159
|
+
/**
|
|
17160
|
+
* Returns a compound with the specified name.
|
|
17161
|
+
* Returns undefined if there is no compound with the specified name.
|
|
17162
|
+
*/
|
|
17163
|
+
getCompound(name: string): ICompound | undefined;
|
|
17164
|
+
/**
|
|
17165
|
+
* Returns the names of all configurations and compounds.
|
|
17166
|
+
* Ignores configurations which are invalid.
|
|
17167
|
+
*/
|
|
17168
|
+
getConfigurationNames(ignoreCompoundsAndPresentation?: boolean): string[];
|
|
17169
|
+
/**
|
|
17170
|
+
* Opens the launch.json file. Creates if it does not exist.
|
|
17171
|
+
*/
|
|
17172
|
+
openConfigFile(options: {
|
|
17173
|
+
preserveFocus: boolean;
|
|
17174
|
+
type?: string;
|
|
17175
|
+
suppressInitialConfigs?: boolean;
|
|
17176
|
+
}, token?: CancellationToken): Promise<{
|
|
17177
|
+
editor: IEditorPane | null;
|
|
17178
|
+
created: boolean;
|
|
17179
|
+
}>;
|
|
17180
|
+
}
|
|
17181
|
+
declare const IDebugService: ServiceIdentifier<IDebugService>;
|
|
17182
|
+
interface IDebugService {
|
|
17183
|
+
readonly _serviceBrand: undefined;
|
|
17184
|
+
/**
|
|
17185
|
+
* Gets the current debug state.
|
|
17186
|
+
*/
|
|
17187
|
+
readonly state: State;
|
|
17188
|
+
readonly initializingOptions?: IDebugSessionOptions | undefined;
|
|
17189
|
+
/**
|
|
17190
|
+
* Allows to register on debug state changes.
|
|
17191
|
+
*/
|
|
17192
|
+
onDidChangeState: Event$1<State>;
|
|
17193
|
+
/**
|
|
17194
|
+
* Allows to register on new session events.
|
|
17195
|
+
*/
|
|
17196
|
+
onDidNewSession: Event$1<IDebugSession>;
|
|
17197
|
+
/**
|
|
17198
|
+
* Allows to register on sessions about to be created (not yet fully initialised)
|
|
17199
|
+
*/
|
|
17200
|
+
onWillNewSession: Event$1<IDebugSession>;
|
|
17201
|
+
/**
|
|
17202
|
+
* Allows to register on end session events.
|
|
17203
|
+
*/
|
|
17204
|
+
onDidEndSession: Event$1<IDebugSession>;
|
|
17205
|
+
/**
|
|
17206
|
+
* Gets the configuration manager.
|
|
17207
|
+
*/
|
|
17208
|
+
getConfigurationManager(): IConfigurationManager;
|
|
17209
|
+
/**
|
|
17210
|
+
* Gets the adapter manager.
|
|
17211
|
+
*/
|
|
17212
|
+
getAdapterManager(): IAdapterManager;
|
|
17213
|
+
/**
|
|
17214
|
+
* Sets the focused stack frame and evaluates all expressions against the newly focused stack frame,
|
|
17215
|
+
*/
|
|
17216
|
+
focusStackFrame(focusedStackFrame: IStackFrame | undefined, thread?: IThread, session?: IDebugSession, options?: {
|
|
17217
|
+
explicit?: boolean;
|
|
17218
|
+
preserveFocus?: boolean;
|
|
17219
|
+
sideBySide?: boolean;
|
|
17220
|
+
pinned?: boolean;
|
|
17221
|
+
}): Promise<void>;
|
|
17222
|
+
/**
|
|
17223
|
+
* Returns true if breakpoints can be set for a given editor model. Depends on mode.
|
|
17224
|
+
*/
|
|
17225
|
+
canSetBreakpointsIn(model: ITextModel): boolean;
|
|
17226
|
+
/**
|
|
17227
|
+
* Adds new breakpoints to the model for the file specified with the uri. Notifies debug adapter of breakpoint changes.
|
|
17228
|
+
*/
|
|
17229
|
+
addBreakpoints(uri: URI, rawBreakpoints: IBreakpointData[], ariaAnnounce?: boolean): Promise<IBreakpoint[]>;
|
|
17230
|
+
/**
|
|
17231
|
+
* Updates the breakpoints.
|
|
17232
|
+
*/
|
|
17233
|
+
updateBreakpoints(uri: URI, data: Map<string, IBreakpointUpdateData>, sendOnResourceSaved: boolean): Promise<void>;
|
|
17234
|
+
/**
|
|
17235
|
+
* Enables or disables all breakpoints. If breakpoint is passed only enables or disables the passed breakpoint.
|
|
17236
|
+
* Notifies debug adapter of breakpoint changes.
|
|
17237
|
+
*/
|
|
17238
|
+
enableOrDisableBreakpoints(enable: boolean, breakpoint?: IEnablement): Promise<void>;
|
|
17239
|
+
/**
|
|
17240
|
+
* Sets the global activated property for all breakpoints.
|
|
17241
|
+
* Notifies debug adapter of breakpoint changes.
|
|
17242
|
+
*/
|
|
17243
|
+
setBreakpointsActivated(activated: boolean): Promise<void>;
|
|
17244
|
+
/**
|
|
17245
|
+
* Removes all breakpoints. If id is passed only removes the breakpoint associated with that id.
|
|
17246
|
+
* Notifies debug adapter of breakpoint changes.
|
|
17247
|
+
*/
|
|
17248
|
+
removeBreakpoints(id?: string): Promise<any>;
|
|
17249
|
+
/**
|
|
17250
|
+
* Adds a new function breakpoint for the given name.
|
|
17251
|
+
*/
|
|
17252
|
+
addFunctionBreakpoint(name?: string, id?: string): void;
|
|
17253
|
+
/**
|
|
17254
|
+
* Updates an already existing function breakpoint.
|
|
17255
|
+
* Notifies debug adapter of breakpoint changes.
|
|
17256
|
+
*/
|
|
17257
|
+
updateFunctionBreakpoint(id: string, update: {
|
|
17258
|
+
name?: string;
|
|
17259
|
+
hitCondition?: string;
|
|
17260
|
+
condition?: string;
|
|
17261
|
+
}): Promise<void>;
|
|
17262
|
+
/**
|
|
17263
|
+
* Removes all function breakpoints. If id is passed only removes the function breakpoint with the passed id.
|
|
17264
|
+
* Notifies debug adapter of breakpoint changes.
|
|
17265
|
+
*/
|
|
17266
|
+
removeFunctionBreakpoints(id?: string): Promise<void>;
|
|
17267
|
+
/**
|
|
17268
|
+
* Adds a new data breakpoint.
|
|
17269
|
+
*/
|
|
17270
|
+
addDataBreakpoint(label: string, dataId: string, canPersist: boolean, accessTypes: DebugProtocol.DataBreakpointAccessType[] | undefined, accessType: DebugProtocol.DataBreakpointAccessType): Promise<void>;
|
|
17271
|
+
/**
|
|
17272
|
+
* Removes all data breakpoints. If id is passed only removes the data breakpoint with the passed id.
|
|
17273
|
+
* Notifies debug adapter of breakpoint changes.
|
|
17274
|
+
*/
|
|
17275
|
+
removeDataBreakpoints(id?: string): Promise<void>;
|
|
17276
|
+
/**
|
|
17277
|
+
* Adds a new instruction breakpoint.
|
|
17278
|
+
*/
|
|
17279
|
+
addInstructionBreakpoint(address: string, offset: number, condition?: string, hitCondition?: string): Promise<void>;
|
|
17280
|
+
/**
|
|
17281
|
+
* Removes all instruction breakpoints. If address is passed only removes the instruction breakpoint with the passed address.
|
|
17282
|
+
* The address should be the address string supplied by the debugger from the "Disassemble" request.
|
|
17283
|
+
* Notifies debug adapter of breakpoint changes.
|
|
17284
|
+
*/
|
|
17285
|
+
removeInstructionBreakpoints(address?: string): Promise<void>;
|
|
17286
|
+
setExceptionBreakpointCondition(breakpoint: IExceptionBreakpoint, condition: string | undefined): Promise<void>;
|
|
17287
|
+
setExceptionBreakpointsForSession(session: IDebugSession, data: DebugProtocol.ExceptionBreakpointsFilter[]): void;
|
|
17288
|
+
/**
|
|
17289
|
+
* Sends all breakpoints to the passed session.
|
|
17290
|
+
* If session is not passed, sends all breakpoints to each session.
|
|
17291
|
+
*/
|
|
17292
|
+
sendAllBreakpoints(session?: IDebugSession): Promise<any>;
|
|
17293
|
+
/**
|
|
17294
|
+
* Adds a new watch expression and evaluates it against the debug adapter.
|
|
17295
|
+
*/
|
|
17296
|
+
addWatchExpression(name?: string): void;
|
|
17297
|
+
/**
|
|
17298
|
+
* Renames a watch expression and evaluates it against the debug adapter.
|
|
17299
|
+
*/
|
|
17300
|
+
renameWatchExpression(id: string, newName: string): void;
|
|
17301
|
+
/**
|
|
17302
|
+
* Moves a watch expression to a new possition. Used for reordering watch expressions.
|
|
17303
|
+
*/
|
|
17304
|
+
moveWatchExpression(id: string, position: number): void;
|
|
17305
|
+
/**
|
|
17306
|
+
* Removes all watch expressions. If id is passed only removes the watch expression with the passed id.
|
|
17307
|
+
*/
|
|
17308
|
+
removeWatchExpressions(id?: string): void;
|
|
17309
|
+
/**
|
|
17310
|
+
* Starts debugging. If the configOrName is not passed uses the selected configuration in the debug dropdown.
|
|
17311
|
+
* Also saves all files, manages if compounds are present in the configuration
|
|
17312
|
+
* and resolveds configurations via DebugConfigurationProviders.
|
|
17313
|
+
*
|
|
17314
|
+
* Returns true if the start debugging was successful. For compound launches, all configurations have to start successfully for it to return success.
|
|
17315
|
+
* On errors the startDebugging will throw an error, however some error and cancelations are handled and in that case will simply return false.
|
|
17316
|
+
*/
|
|
17317
|
+
startDebugging(launch: ILaunch | undefined, configOrName?: IConfig | string, options?: IDebugSessionOptions, saveBeforeStart?: boolean): Promise<boolean>;
|
|
17318
|
+
/**
|
|
17319
|
+
* Restarts a session or creates a new one if there is no active session.
|
|
17320
|
+
*/
|
|
17321
|
+
restartSession(session: IDebugSession, restartData?: any): Promise<any>;
|
|
17322
|
+
/**
|
|
17323
|
+
* Stops the session. If no session is specified then all sessions are stopped.
|
|
17324
|
+
*/
|
|
17325
|
+
stopSession(session: IDebugSession | undefined, disconnect?: boolean, suspend?: boolean): Promise<any>;
|
|
17326
|
+
/**
|
|
17327
|
+
* Makes unavailable all sources with the passed uri. Source will appear as grayed out in callstack view.
|
|
17328
|
+
*/
|
|
17329
|
+
sourceIsNotAvailable(uri: URI): void;
|
|
17330
|
+
/**
|
|
17331
|
+
* Gets the current debug model.
|
|
17332
|
+
*/
|
|
17333
|
+
getModel(): IDebugModel;
|
|
17334
|
+
/**
|
|
17335
|
+
* Gets the current view model.
|
|
17336
|
+
*/
|
|
17337
|
+
getViewModel(): IViewModel;
|
|
17338
|
+
/**
|
|
17339
|
+
* Resumes execution and pauses until the given position is reached.
|
|
17340
|
+
*/
|
|
17341
|
+
runTo(uri: URI, lineNumber: number, column?: number): Promise<void>;
|
|
17342
|
+
}
|
|
17343
|
+
|
|
16423
17344
|
interface Window {
|
|
16424
17345
|
createOutputChannel?(name: string, options: string | {
|
|
16425
17346
|
log: true;
|
|
@@ -16446,4 +17367,4 @@ declare namespace Services {
|
|
|
16446
17367
|
function install(_services: Services): vscode.Disposable;
|
|
16447
17368
|
}
|
|
16448
17369
|
|
|
16449
|
-
export { ContextKeyExprType, IAudioCueService, IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IDialogService, IEditorGroupsService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, ILanguageConfigurationService, ILanguageFeaturesService, ILanguageService, ILanguageStatusService, IMarkerService, IModelService, INotificationService, IOpenerService, IPaneCompositePartService, IPathService, IProductService, IQuickInputService, ISnippetsService, IStorageService, ITelemetryService, ITextFileService, ITextModelContentProvider, ITextModelService, IThemeService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkingCopyFileService, IWorkspaceContextService, NotificationsFilter, Services, Severity$1 as Severity, StandaloneServices, StorageScope, StorageTarget, Window, Workspace };
|
|
17370
|
+
export { ContextKeyExprType, IAudioCueService, IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IDebugService, IDialogService, IEditorGroupsService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, ILanguageConfigurationService, ILanguageFeaturesService, ILanguageService, ILanguageStatusService, IMarkerService, IModelService, INotificationService, IOpenerService, IPaneCompositePartService, IPathService, IProductService, IQuickInputService, ISnippetsService, IStorageService, ITelemetryService, ITextFileService, ITextModelContentProvider, ITextModelService, IThemeService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkingCopyFileService, IWorkspaceContextService, NotificationsFilter, Services, Severity$1 as Severity, StandaloneServices, StorageScope, StorageTarget, Window, Workspace };
|