microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
833e37c7e4b22cce3fe8132bc4504f2762428b4c

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/debugger/nodeDebugAdapter.d.ts

99lines · modeblame

40e4b177Patricio Beltran10 years ago1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4// These typings do not reflect the typings as intended to be used
5// but rather as they exist in truth, so we can reach into the internals
6// and access what we need.
e45838cbVladimir Kotikov9 years ago7declare module VSCodeDebugAdapterPackage {
40e4b177Patricio Beltran10 years ago8class DebugSession {
e45838cbVladimir Kotikov9 years ago9public static run(debugSession: typeof DebugSession): void;
a8b90ac7Vladimir Kotikov9 years ago10// This is actually inherited from protocol server but we'll put it here
11public start(inStream: NodeJS.ReadableStream, outStream: NodeJS.WritableStream): void;
12public sendEvent(event: Event): void;
e45838cbVladimir Kotikov9 years ago13}
14class InitializedEvent extends Event {
40e4b177Patricio Beltran10 years ago15constructor();
16}
e45838cbVladimir Kotikov9 years ago17class OutputEvent extends Event {
40e4b177Patricio Beltran10 years ago18constructor(message: string, destination?: string);
19}
e45838cbVladimir Kotikov9 years ago20class TerminatedEvent extends Event {
40e4b177Patricio Beltran10 years ago21constructor();
22}
e45838cbVladimir Kotikov9 years ago23class Event {
24public event: string;
25public body: any;
26}
b8999098Dmitry Zinovyev9 years ago27class ContinuedEvent extends Event {
28public seq: number;
29/** Must be 'event'. */
30public type: string;
31public body: {
32threadId: number;
33};
34}
e45838cbVladimir Kotikov9 years ago35interface Request {
36command: string;
37arguments?: any;
38}
40e4b177Patricio Beltran10 years ago39}
40
e45838cbVladimir Kotikov9 years ago41declare module ChromeDebuggerCorePackage {
42abstract class ChromeDebugAdapter {
43protected _attachMode: boolean;
44protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
45}
40e4b177Patricio Beltran10 years ago46
e45838cbVladimir Kotikov9 years ago47interface IChromeDebugSessionOpts {
48logFilePath?: string;
49adapter: typeof ChromeDebugAdapter;
50extensionName: string;
51}
40e4b177Patricio Beltran10 years ago52
e45838cbVladimir Kotikov9 years ago53class ChromeDebugSession extends VSCodeDebugAdapterPackage.DebugSession {
54protected _debugAdapter: any;
55constructor(debuggerLinesAndColumnsStartAt1?: boolean, isServer?: boolean, opts?: IChromeDebugSessionOpts);
56protected dispatchRequest(request: { command: string }): void;
57}
40e4b177Patricio Beltran10 years ago58}
59
e45838cbVladimir Kotikov9 years ago60declare module Node2DebugAdapterPackage {
471a26dfNikita Matrosov9 years ago61
62type ChecksumAlgorithm = "MD5" | "SHA1" | "SHA256" | "timestamp";
63
64interface Checksum {
65algorithm: ChecksumAlgorithm;
66checksum: string;
67}
68
69interface Source {
70name?: string;
71path?: string;
72sourceReference?: number;
73presentationHint?: "emphasize" | "deemphasize";
74origin?: string;
75adapterData?: any;
76checksums?: Checksum[];
77}
78
79interface Breakpoint {
80id?: number;
81verified: boolean;
82message?: string;
83source?: Source;
84line?: number;
85column?: number;
86endLine?: number;
87endColumn?: number;
88}
89
90interface ISetBreakpointsResponseBody {
91breakpoints: Breakpoint[];
92}
93
e45838cbVladimir Kotikov9 years ago94class Node2DebugAdapter extends ChromeDebuggerCorePackage.ChromeDebugAdapter {
8049d420Vladimir Kotikov9 years ago95protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
471a26dfNikita Matrosov9 years ago96public setBreakpoints(args: any, requestSeq: number, ids?: number[]): Promise<ISetBreakpointsResponseBody>;
e45838cbVladimir Kotikov9 years ago97}
774cffd7Vladimir Kotikov9 years ago98}
e45838cbVladimir Kotikov9 years ago99