microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.3.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/debugger/nodeDebugAdapter.d.ts

57lines · 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}
27interface Request {
28command: string;
29arguments?: any;
30}
40e4b177Patricio Beltran10 years ago31}
32
e45838cbVladimir Kotikov9 years ago33declare module ChromeDebuggerCorePackage {
34abstract class ChromeDebugAdapter {
35protected _attachMode: boolean;
36protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
37}
40e4b177Patricio Beltran10 years ago38
e45838cbVladimir Kotikov9 years ago39interface IChromeDebugSessionOpts {
40logFilePath?: string;
41adapter: typeof ChromeDebugAdapter;
42extensionName: string;
43}
40e4b177Patricio Beltran10 years ago44
e45838cbVladimir Kotikov9 years ago45class ChromeDebugSession extends VSCodeDebugAdapterPackage.DebugSession {
46protected _debugAdapter: any;
47constructor(debuggerLinesAndColumnsStartAt1?: boolean, isServer?: boolean, opts?: IChromeDebugSessionOpts);
48protected dispatchRequest(request: { command: string }): void;
49}
40e4b177Patricio Beltran10 years ago50}
51
e45838cbVladimir Kotikov9 years ago52declare module Node2DebugAdapterPackage {
53class Node2DebugAdapter extends ChromeDebuggerCorePackage.ChromeDebugAdapter {
8049d420Vladimir Kotikov9 years ago54protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
e45838cbVladimir Kotikov9 years ago55}
774cffd7Vladimir Kotikov9 years ago56}
e45838cbVladimir Kotikov9 years ago57