microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/debugger/nodeDebugAdapter.d.ts
55lines · modeblame
40e4b177Patricio Beltran10 years ago | 1 | // 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 ago | 7 | declare module VSCodeDebugAdapterPackage { |
40e4b177Patricio Beltran10 years ago | 8 | class DebugSession { |
e45838cbVladimir Kotikov9 years ago | 9 | public static run(debugSession: typeof DebugSession): void; |
| 10 | } | |
| 11 | class InitializedEvent extends Event { | |
40e4b177Patricio Beltran10 years ago | 12 | constructor(); |
| 13 | } | |
e45838cbVladimir Kotikov9 years ago | 14 | class OutputEvent extends Event { |
40e4b177Patricio Beltran10 years ago | 15 | constructor(message: string, destination?: string); |
| 16 | } | |
e45838cbVladimir Kotikov9 years ago | 17 | class TerminatedEvent extends Event { |
40e4b177Patricio Beltran10 years ago | 18 | constructor(); |
| 19 | } | |
e45838cbVladimir Kotikov9 years ago | 20 | class Event { |
| 21 | public event: string; | |
| 22 | public body: any; | |
| 23 | } | |
| 24 | interface Request { | |
| 25 | command: string; | |
| 26 | arguments?: any; | |
| 27 | } | |
40e4b177Patricio Beltran10 years ago | 28 | } |
| 29 | | |
e45838cbVladimir Kotikov9 years ago | 30 | declare module ChromeDebuggerCorePackage { |
| 31 | abstract class ChromeDebugAdapter { | |
| 32 | protected _attachMode: boolean; | |
| 33 | protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>; | |
| 34 | } | |
40e4b177Patricio Beltran10 years ago | 35 | |
e45838cbVladimir Kotikov9 years ago | 36 | interface IChromeDebugSessionOpts { |
| 37 | logFilePath?: string; | |
| 38 | adapter: typeof ChromeDebugAdapter; | |
| 39 | extensionName: string; | |
| 40 | } | |
40e4b177Patricio Beltran10 years ago | 41 | |
e45838cbVladimir Kotikov9 years ago | 42 | class ChromeDebugSession extends VSCodeDebugAdapterPackage.DebugSession { |
| 43 | protected _debugAdapter: any; | |
| 44 | constructor(debuggerLinesAndColumnsStartAt1?: boolean, isServer?: boolean, opts?: IChromeDebugSessionOpts); | |
| 45 | public sendEvent(event: VSCodeDebugAdapterPackage.InitializedEvent): void; | |
| 46 | protected dispatchRequest(request: { command: string }): void; | |
| 47 | } | |
40e4b177Patricio Beltran10 years ago | 48 | } |
| 49 | | |
e45838cbVladimir Kotikov9 years ago | 50 | declare module Node2DebugAdapterPackage { |
| 51 | class Node2DebugAdapter extends ChromeDebuggerCorePackage.ChromeDebugAdapter { | |
| 52 | protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void> | |
| 53 | } | |
774cffd7Vladimir Kotikov9 years ago | 54 | } |
e45838cbVladimir Kotikov9 years ago | 55 | |