microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
cc70057d4beada1315f86cbbf3246d5c065b9eda

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/debugger/nodeDebugAdapter.d.ts

57lines · modecode

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.
7declare module VSCodeDebugAdapterPackage {
8 class DebugSession {
9 public static run(debugSession: typeof DebugSession): void;
10 // This is actually inherited from protocol server but we'll put it here
11 public start(inStream: NodeJS.ReadableStream, outStream: NodeJS.WritableStream): void;
12 public sendEvent(event: Event): void;
13 }
14 class InitializedEvent extends Event {
15 constructor();
16 }
17 class OutputEvent extends Event {
18 constructor(message: string, destination?: string);
19 }
20 class TerminatedEvent extends Event {
21 constructor();
22 }
23 class Event {
24 public event: string;
25 public body: any;
26 }
27 interface Request {
28 command: string;
29 arguments?: any;
30 }
31}
32
33declare module ChromeDebuggerCorePackage {
34 abstract class ChromeDebugAdapter {
35 protected _attachMode: boolean;
36 protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
37 }
38
39 interface IChromeDebugSessionOpts {
40 logFilePath?: string;
41 adapter: typeof ChromeDebugAdapter;
42 extensionName: string;
43 }
44
45 class ChromeDebugSession extends VSCodeDebugAdapterPackage.DebugSession {
46 protected _debugAdapter: any;
47 constructor(debuggerLinesAndColumnsStartAt1?: boolean, isServer?: boolean, opts?: IChromeDebugSessionOpts);
48 protected dispatchRequest(request: { command: string }): void;
49 }
50}
51
52declare module Node2DebugAdapterPackage {
53 class Node2DebugAdapter extends ChromeDebuggerCorePackage.ChromeDebugAdapter {
54 protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
55 }
56}
57
58