microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
a593f339aaef614caa22033ca067884a7c0aa038

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/debugger/nodeDebugAdapter.d.ts

55lines · 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;
10}
11class InitializedEvent extends Event {
40e4b177Patricio Beltran10 years ago12constructor();
13}
e45838cbVladimir Kotikov9 years ago14class OutputEvent extends Event {
40e4b177Patricio Beltran10 years ago15constructor(message: string, destination?: string);
16}
e45838cbVladimir Kotikov9 years ago17class TerminatedEvent extends Event {
40e4b177Patricio Beltran10 years ago18constructor();
19}
e45838cbVladimir Kotikov9 years ago20class Event {
21public event: string;
22public body: any;
23}
24interface Request {
25command: string;
26arguments?: any;
27}
40e4b177Patricio Beltran10 years ago28}
29
e45838cbVladimir Kotikov9 years ago30declare module ChromeDebuggerCorePackage {
31abstract class ChromeDebugAdapter {
32protected _attachMode: boolean;
33protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>;
34}
40e4b177Patricio Beltran10 years ago35
e45838cbVladimir Kotikov9 years ago36interface IChromeDebugSessionOpts {
37logFilePath?: string;
38adapter: typeof ChromeDebugAdapter;
39extensionName: string;
40}
40e4b177Patricio Beltran10 years ago41
e45838cbVladimir Kotikov9 years ago42class ChromeDebugSession extends VSCodeDebugAdapterPackage.DebugSession {
43protected _debugAdapter: any;
44constructor(debuggerLinesAndColumnsStartAt1?: boolean, isServer?: boolean, opts?: IChromeDebugSessionOpts);
45public sendEvent(event: VSCodeDebugAdapterPackage.InitializedEvent): void;
46protected dispatchRequest(request: { command: string }): void;
47}
40e4b177Patricio Beltran10 years ago48}
49
e45838cbVladimir Kotikov9 years ago50declare module Node2DebugAdapterPackage {
51class Node2DebugAdapter extends ChromeDebuggerCorePackage.ChromeDebugAdapter {
52protected doAttach(port: number, targetUrl?: string, address?: string, timeout?: number): Promise<void>
53}
774cffd7Vladimir Kotikov9 years ago54}
e45838cbVladimir Kotikov9 years ago55