microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
ed8367fd74f02d9e52fc14154017fd911acb4bf7

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/debugger/nodeDebugAdapter.d.ts

102lines · 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 {
27710197Vladimir Kotikov8 years ago8
9class Event {
10public event: string;
11public body: any;
12}
13
40e4b177Patricio Beltran10 years ago14class DebugSession {
e45838cbVladimir Kotikov9 years ago15public static run(debugSession: typeof DebugSession): void;
a8b90ac7Vladimir Kotikov9 years ago16// This is actually inherited from protocol server but we'll put it here
17public start(inStream: NodeJS.ReadableStream, outStream: NodeJS.WritableStream): void;
18public sendEvent(event: Event): void;
e45838cbVladimir Kotikov9 years ago19}
20class InitializedEvent extends Event {
40e4b177Patricio Beltran10 years ago21constructor();
22}
e45838cbVladimir Kotikov9 years ago23class OutputEvent extends Event {
40e4b177Patricio Beltran10 years ago24constructor(message: string, destination?: string);
25}
e45838cbVladimir Kotikov9 years ago26class TerminatedEvent extends Event {
40e4b177Patricio Beltran10 years ago27constructor();
28}
27710197Vladimir Kotikov8 years ago29
b8999098Dmitry Zinovyev9 years ago30class ContinuedEvent extends Event {
31public seq: number;
32/** Must be 'event'. */
33public type: string;
34public body: {
35threadId: number;
36};
37}
e45838cbVladimir Kotikov9 years ago38interface Request {
39command: string;
40arguments?: any;
41}
40e4b177Patricio Beltran10 years ago42}
43
e45838cbVladimir Kotikov9 years ago44declare module ChromeDebuggerCorePackage {
45abstract class ChromeDebugAdapter {
46protected _attachMode: boolean;
47protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
48}
40e4b177Patricio Beltran10 years ago49
e45838cbVladimir Kotikov9 years ago50interface IChromeDebugSessionOpts {
51logFilePath?: string;
52adapter: typeof ChromeDebugAdapter;
53extensionName: string;
54}
40e4b177Patricio Beltran10 years ago55
e45838cbVladimir Kotikov9 years ago56class ChromeDebugSession extends VSCodeDebugAdapterPackage.DebugSession {
57protected _debugAdapter: any;
58constructor(debuggerLinesAndColumnsStartAt1?: boolean, isServer?: boolean, opts?: IChromeDebugSessionOpts);
59protected dispatchRequest(request: { command: string }): void;
60}
40e4b177Patricio Beltran10 years ago61}
62
e45838cbVladimir Kotikov9 years ago63declare module Node2DebugAdapterPackage {
471a26dfNikita Matrosov9 years ago64
65type ChecksumAlgorithm = "MD5" | "SHA1" | "SHA256" | "timestamp";
66
67interface Checksum {
68algorithm: ChecksumAlgorithm;
69checksum: string;
70}
71
72interface Source {
73name?: string;
74path?: string;
75sourceReference?: number;
76presentationHint?: "emphasize" | "deemphasize";
77origin?: string;
78adapterData?: any;
79checksums?: Checksum[];
80}
81
82interface Breakpoint {
83id?: number;
84verified: boolean;
85message?: string;
86source?: Source;
87line?: number;
88column?: number;
89endLine?: number;
90endColumn?: number;
91}
92
93interface ISetBreakpointsResponseBody {
94breakpoints: Breakpoint[];
95}
96
e45838cbVladimir Kotikov9 years ago97class Node2DebugAdapter extends ChromeDebuggerCorePackage.ChromeDebugAdapter {
8049d420Vladimir Kotikov9 years ago98protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
471a26dfNikita Matrosov9 years ago99public setBreakpoints(args: any, requestSeq: number, ids?: number[]): Promise<ISetBreakpointsResponseBody>;
e45838cbVladimir Kotikov9 years ago100}
774cffd7Vladimir Kotikov9 years ago101}
e45838cbVladimir Kotikov9 years ago102