first commit
This commit is contained in:
11
build/node_modules/vscode-debugadapter/LICENSE.txt
generated
vendored
Normal file
11
build/node_modules/vscode-debugadapter/LICENSE.txt
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
Copyright (c) Microsoft Corporation
|
||||
|
||||
All rights reserved.
|
||||
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
10
build/node_modules/vscode-debugadapter/README.md
generated
vendored
Normal file
10
build/node_modules/vscode-debugadapter/README.md
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# VS Code Debug Adapter
|
||||
|
||||
[](https://npmjs.org/package/vscode-debugadapter)
|
||||
[](https://npmjs.org/package/vscode-debugadapter)
|
||||
|
||||
Npm module to implement a VS Code debug adapter using [Node.js](https://nodejs.org/) as a runtime.
|
||||
|
||||
## License
|
||||
|
||||
[MIT](https://github.com/Microsoft/vscode-languageserver-node/blob/master/License.txt)
|
||||
174
build/node_modules/vscode-debugadapter/lib/debugSession.d.ts
generated
vendored
Normal file
174
build/node_modules/vscode-debugadapter/lib/debugSession.d.ts
generated
vendored
Normal file
@@ -0,0 +1,174 @@
|
||||
import { DebugProtocol } from 'vscode-debugprotocol';
|
||||
import { ProtocolServer } from './protocol';
|
||||
import { Event } from './messages';
|
||||
export declare class Source implements DebugProtocol.Source {
|
||||
name: string;
|
||||
path: string;
|
||||
sourceReference: number;
|
||||
constructor(name: string, path?: string, id?: number, origin?: string, data?: any);
|
||||
}
|
||||
export declare class Scope implements DebugProtocol.Scope {
|
||||
name: string;
|
||||
variablesReference: number;
|
||||
expensive: boolean;
|
||||
constructor(name: string, reference: number, expensive?: boolean);
|
||||
}
|
||||
export declare class StackFrame implements DebugProtocol.StackFrame {
|
||||
id: number;
|
||||
source: Source;
|
||||
line: number;
|
||||
column: number;
|
||||
name: string;
|
||||
constructor(i: number, nm: string, src?: Source, ln?: number, col?: number);
|
||||
}
|
||||
export declare class Thread implements DebugProtocol.Thread {
|
||||
id: number;
|
||||
name: string;
|
||||
constructor(id: number, name: string);
|
||||
}
|
||||
export declare class Variable implements DebugProtocol.Variable {
|
||||
name: string;
|
||||
value: string;
|
||||
variablesReference: number;
|
||||
constructor(name: string, value: string, ref?: number, indexedVariables?: number, namedVariables?: number);
|
||||
}
|
||||
export declare class Breakpoint implements DebugProtocol.Breakpoint {
|
||||
verified: boolean;
|
||||
constructor(verified: boolean, line?: number, column?: number, source?: Source);
|
||||
}
|
||||
export declare class Module implements DebugProtocol.Module {
|
||||
id: number | string;
|
||||
name: string;
|
||||
constructor(id: number | string, name: string);
|
||||
}
|
||||
export declare class CompletionItem implements DebugProtocol.CompletionItem {
|
||||
label: string;
|
||||
start: number;
|
||||
length: number;
|
||||
constructor(label: string, start: number, length?: number);
|
||||
}
|
||||
export declare class StoppedEvent extends Event implements DebugProtocol.StoppedEvent {
|
||||
body: {
|
||||
reason: string;
|
||||
threadId: number;
|
||||
};
|
||||
constructor(reason: string, threadId: number, exception_text?: string);
|
||||
}
|
||||
export declare class ContinuedEvent extends Event implements DebugProtocol.ContinuedEvent {
|
||||
body: {
|
||||
threadId: number;
|
||||
};
|
||||
constructor(threadId: number, allThreadsContinued?: boolean);
|
||||
}
|
||||
export declare class InitializedEvent extends Event implements DebugProtocol.InitializedEvent {
|
||||
constructor();
|
||||
}
|
||||
export declare class TerminatedEvent extends Event implements DebugProtocol.TerminatedEvent {
|
||||
constructor(restart?: any);
|
||||
}
|
||||
export declare class OutputEvent extends Event implements DebugProtocol.OutputEvent {
|
||||
body: {
|
||||
category: string;
|
||||
output: string;
|
||||
data?: any;
|
||||
};
|
||||
constructor(output: string, category?: string, data?: any);
|
||||
}
|
||||
export declare class ThreadEvent extends Event implements DebugProtocol.ThreadEvent {
|
||||
body: {
|
||||
reason: string;
|
||||
threadId: number;
|
||||
};
|
||||
constructor(reason: string, threadId: number);
|
||||
}
|
||||
export declare class BreakpointEvent extends Event implements DebugProtocol.BreakpointEvent {
|
||||
body: {
|
||||
reason: string;
|
||||
breakpoint: Breakpoint;
|
||||
};
|
||||
constructor(reason: string, breakpoint: Breakpoint);
|
||||
}
|
||||
export declare class ModuleEvent extends Event implements DebugProtocol.ModuleEvent {
|
||||
body: {
|
||||
reason: 'new' | 'changed' | 'removed';
|
||||
module: Module;
|
||||
};
|
||||
constructor(reason: 'new' | 'changed' | 'removed', module: Module);
|
||||
}
|
||||
export declare class LoadedSourceEvent extends Event implements DebugProtocol.LoadedSourceEvent {
|
||||
body: {
|
||||
reason: 'new' | 'changed' | 'removed';
|
||||
source: Source;
|
||||
};
|
||||
constructor(reason: 'new' | 'changed' | 'removed', source: Source);
|
||||
}
|
||||
export declare enum ErrorDestination {
|
||||
User = 1,
|
||||
Telemetry = 2,
|
||||
}
|
||||
export declare class DebugSession extends ProtocolServer {
|
||||
private _debuggerLinesStartAt1;
|
||||
private _debuggerColumnsStartAt1;
|
||||
private _debuggerPathsAreURIs;
|
||||
private _clientLinesStartAt1;
|
||||
private _clientColumnsStartAt1;
|
||||
private _clientPathsAreURIs;
|
||||
protected _isServer: boolean;
|
||||
constructor(obsolete_debuggerLinesAndColumnsStartAt1?: boolean, obsolete_isServer?: boolean);
|
||||
setDebuggerPathFormat(format: string): void;
|
||||
setDebuggerLinesStartAt1(enable: boolean): void;
|
||||
setDebuggerColumnsStartAt1(enable: boolean): void;
|
||||
setRunAsServer(enable: boolean): void;
|
||||
/**
|
||||
* A virtual constructor...
|
||||
*/
|
||||
static run(debugSession: typeof DebugSession): void;
|
||||
shutdown(): void;
|
||||
protected sendErrorResponse(response: DebugProtocol.Response, codeOrMessage: number | DebugProtocol.Message, format?: string, variables?: any, dest?: ErrorDestination): void;
|
||||
runInTerminalRequest(args: DebugProtocol.RunInTerminalRequestArguments, timeout: number, cb: (response: DebugProtocol.RunInTerminalResponse) => void): void;
|
||||
protected dispatchRequest(request: DebugProtocol.Request): void;
|
||||
protected initializeRequest(response: DebugProtocol.InitializeResponse, args: DebugProtocol.InitializeRequestArguments): void;
|
||||
protected disconnectRequest(response: DebugProtocol.DisconnectResponse, args: DebugProtocol.DisconnectArguments): void;
|
||||
protected launchRequest(response: DebugProtocol.LaunchResponse, args: DebugProtocol.LaunchRequestArguments): void;
|
||||
protected attachRequest(response: DebugProtocol.AttachResponse, args: DebugProtocol.AttachRequestArguments): void;
|
||||
protected restartRequest(response: DebugProtocol.RestartResponse, args: DebugProtocol.RestartArguments): void;
|
||||
protected setBreakPointsRequest(response: DebugProtocol.SetBreakpointsResponse, args: DebugProtocol.SetBreakpointsArguments): void;
|
||||
protected setFunctionBreakPointsRequest(response: DebugProtocol.SetFunctionBreakpointsResponse, args: DebugProtocol.SetFunctionBreakpointsArguments): void;
|
||||
protected setExceptionBreakPointsRequest(response: DebugProtocol.SetExceptionBreakpointsResponse, args: DebugProtocol.SetExceptionBreakpointsArguments): void;
|
||||
protected configurationDoneRequest(response: DebugProtocol.ConfigurationDoneResponse, args: DebugProtocol.ConfigurationDoneArguments): void;
|
||||
protected continueRequest(response: DebugProtocol.ContinueResponse, args: DebugProtocol.ContinueArguments): void;
|
||||
protected nextRequest(response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments): void;
|
||||
protected stepInRequest(response: DebugProtocol.StepInResponse, args: DebugProtocol.StepInArguments): void;
|
||||
protected stepOutRequest(response: DebugProtocol.StepOutResponse, args: DebugProtocol.StepOutArguments): void;
|
||||
protected stepBackRequest(response: DebugProtocol.StepBackResponse, args: DebugProtocol.StepBackArguments): void;
|
||||
protected reverseContinueRequest(response: DebugProtocol.ReverseContinueResponse, args: DebugProtocol.ReverseContinueArguments): void;
|
||||
protected restartFrameRequest(response: DebugProtocol.RestartFrameResponse, args: DebugProtocol.RestartFrameArguments): void;
|
||||
protected gotoRequest(response: DebugProtocol.GotoResponse, args: DebugProtocol.GotoArguments): void;
|
||||
protected pauseRequest(response: DebugProtocol.PauseResponse, args: DebugProtocol.PauseArguments): void;
|
||||
protected sourceRequest(response: DebugProtocol.SourceResponse, args: DebugProtocol.SourceArguments): void;
|
||||
protected threadsRequest(response: DebugProtocol.ThreadsResponse): void;
|
||||
protected stackTraceRequest(response: DebugProtocol.StackTraceResponse, args: DebugProtocol.StackTraceArguments): void;
|
||||
protected scopesRequest(response: DebugProtocol.ScopesResponse, args: DebugProtocol.ScopesArguments): void;
|
||||
protected variablesRequest(response: DebugProtocol.VariablesResponse, args: DebugProtocol.VariablesArguments): void;
|
||||
protected setVariableRequest(response: DebugProtocol.SetVariableResponse, args: DebugProtocol.SetVariableArguments): void;
|
||||
protected evaluateRequest(response: DebugProtocol.EvaluateResponse, args: DebugProtocol.EvaluateArguments): void;
|
||||
protected stepInTargetsRequest(response: DebugProtocol.StepInTargetsResponse, args: DebugProtocol.StepInTargetsArguments): void;
|
||||
protected gotoTargetsRequest(response: DebugProtocol.GotoTargetsResponse, args: DebugProtocol.GotoTargetsArguments): void;
|
||||
protected completionsRequest(response: DebugProtocol.CompletionsResponse, args: DebugProtocol.CompletionsArguments): void;
|
||||
protected exceptionInfoRequest(response: DebugProtocol.ExceptionInfoResponse, args: DebugProtocol.ExceptionInfoArguments): void;
|
||||
protected loadedSourcesRequest(response: DebugProtocol.LoadedSourcesResponse, args: DebugProtocol.LoadedSourcesArguments): void;
|
||||
/**
|
||||
* Override this hook to implement custom requests.
|
||||
*/
|
||||
protected customRequest(command: string, response: DebugProtocol.Response, args: any): void;
|
||||
protected convertClientLineToDebugger(line: number): number;
|
||||
protected convertDebuggerLineToClient(line: number): number;
|
||||
protected convertClientColumnToDebugger(column: number): number;
|
||||
protected convertDebuggerColumnToClient(column: number): number;
|
||||
protected convertClientPathToDebugger(clientPath: string): string;
|
||||
protected convertDebuggerPathToClient(debuggerPath: string): string;
|
||||
private static path2uri(str);
|
||||
private static uri2path(url);
|
||||
private static _formatPIIRegexp;
|
||||
private static formatPII(format, excludePII, args);
|
||||
}
|
||||
631
build/node_modules/vscode-debugadapter/lib/debugSession.js
generated
vendored
Normal file
631
build/node_modules/vscode-debugadapter/lib/debugSession.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
build/node_modules/vscode-debugadapter/lib/handles.d.ts
generated
vendored
Normal file
9
build/node_modules/vscode-debugadapter/lib/handles.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export declare class Handles<T> {
|
||||
private START_HANDLE;
|
||||
private _nextHandle;
|
||||
private _handleMap;
|
||||
constructor(startHandle?: number);
|
||||
reset(): void;
|
||||
create(value: T): number;
|
||||
get(handle: number, dflt?: T): T;
|
||||
}
|
||||
27
build/node_modules/vscode-debugadapter/lib/handles.js
generated
vendored
Normal file
27
build/node_modules/vscode-debugadapter/lib/handles.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Handles {
|
||||
constructor(startHandle) {
|
||||
this.START_HANDLE = 1000;
|
||||
this._handleMap = new Map();
|
||||
this._nextHandle = typeof startHandle === 'number' ? startHandle : this.START_HANDLE;
|
||||
}
|
||||
reset() {
|
||||
this._nextHandle = this.START_HANDLE;
|
||||
this._handleMap = new Map();
|
||||
}
|
||||
create(value) {
|
||||
var handle = this._nextHandle++;
|
||||
this._handleMap.set(handle, value);
|
||||
return handle;
|
||||
}
|
||||
get(handle, dflt) {
|
||||
return this._handleMap.get(handle) || dflt;
|
||||
}
|
||||
}
|
||||
exports.Handles = Handles;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFuZGxlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9oYW5kbGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7O2dHQUdnRzs7QUFFaEc7SUFPQyxZQUFtQixXQUFvQjtRQUwvQixpQkFBWSxHQUFHLElBQUksQ0FBQztRQUdwQixlQUFVLEdBQUcsSUFBSSxHQUFHLEVBQWEsQ0FBQztRQUd6QyxJQUFJLENBQUMsV0FBVyxHQUFHLE9BQU8sV0FBVyxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDO0lBQ3RGLENBQUM7SUFFTSxLQUFLO1FBQ1gsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLENBQUMsWUFBWSxDQUFDO1FBQ3JDLElBQUksQ0FBQyxVQUFVLEdBQUcsSUFBSSxHQUFHLEVBQWEsQ0FBQztJQUN4QyxDQUFDO0lBRU0sTUFBTSxDQUFDLEtBQVE7UUFDckIsSUFBSSxNQUFNLEdBQUcsSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFDO1FBQ2hDLElBQUksQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLE1BQU0sRUFBRSxLQUFLLENBQUMsQ0FBQztRQUNuQyxNQUF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lIDogdGhpcy5TVEFSVF9IQU5ETEU7XG5cdH1cblxuXHRwdWJsaWMgcmVzZXQoKTogdm9pZCB7XG5cdFx0dGhpcy5fbmV4dEhhbmRsZSA9IHRoaXMuU1RBUlRfSEFORExFO1xuXHRcdHRoaXMuX2hhbmRsZU1hcCA9IG5ldyBNYXA8bnVtYmVyLCBUPigpO1xuXHR9XG5cblx0cHVibGljIGNyZWF0ZSh2YWx1ZTogVCk6IG51bWJlciB7XG5cdFx0dmFyIGhhbmRsZSA9IHRoaXMuX25leHRIYW5kbGUrKztcblx0XHR0aGlzLl9oYW5kbGVNYXAuc2V0KGhhbmRsZSwgdmFsdWUpO1xuXHRcdHJldHVybiBoYW5kbGU7XG5cdH1cblxuXHRwdWJsaWMgZ2V0KGhhbmRsZTogbnVtYmVyLCBkZmx0PzogVCk6IFQge1xuXHRcdHJldHVybiB0aGlzLl9oYW5kbGVNYXAuZ2V0KGhhbmRsZSkgfHwgZGZsdDtcblx0fVxufVxuIl19
|
||||
38
build/node_modules/vscode-debugadapter/lib/logger.d.ts
generated
vendored
Normal file
38
build/node_modules/vscode-debugadapter/lib/logger.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { OutputEvent } from './debugSession';
|
||||
export declare enum LogLevel {
|
||||
Verbose = 0,
|
||||
Log = 1,
|
||||
Warn = 2,
|
||||
Error = 3,
|
||||
Stop = 4,
|
||||
}
|
||||
export declare type ILogCallback = (outputEvent: OutputEvent) => void;
|
||||
export interface ILogger {
|
||||
log(msg: string, level?: LogLevel): void;
|
||||
verbose(msg: string): void;
|
||||
warn(msg: string): void;
|
||||
error(msg: string): void;
|
||||
}
|
||||
export declare class Logger {
|
||||
private _currentLogger;
|
||||
private _pendingLogQ;
|
||||
log(msg: string, level?: LogLevel): void;
|
||||
verbose(msg: string): void;
|
||||
warn(msg: string): void;
|
||||
error(msg: string): void;
|
||||
/**
|
||||
* `log` adds a newline, `write` doesn't
|
||||
*/
|
||||
private _write(msg, level?);
|
||||
/**
|
||||
* Set the logger's minimum level to log in the console, and whether to log to the file. Log messages are queued before this is
|
||||
* called the first time, because minLogLevel defaults to Warn.
|
||||
*/
|
||||
setup(consoleMinLogLevel: LogLevel, logToFile: boolean): void;
|
||||
init(logCallback: ILogCallback, logFilePath?: string, logToConsole?: boolean): void;
|
||||
}
|
||||
export declare const logger: Logger;
|
||||
export declare class LogOutputEvent extends OutputEvent {
|
||||
constructor(msg: string, level: LogLevel);
|
||||
}
|
||||
export declare function trimLastNewline(str: string): string;
|
||||
146
build/node_modules/vscode-debugadapter/lib/logger.js
generated
vendored
Normal file
146
build/node_modules/vscode-debugadapter/lib/logger.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
21
build/node_modules/vscode-debugadapter/lib/loggingDebugSession.d.ts
generated
vendored
Normal file
21
build/node_modules/vscode-debugadapter/lib/loggingDebugSession.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/// <reference types="node" />
|
||||
import { DebugProtocol } from 'vscode-debugprotocol';
|
||||
import { DebugSession } from './debugSession';
|
||||
export declare class LoggingDebugSession extends DebugSession {
|
||||
private _logFilePath;
|
||||
constructor(_logFilePath: string, obsolete_debuggerLinesAndColumnsStartAt1?: boolean, obsolete_isServer?: boolean);
|
||||
start(inStream: NodeJS.ReadableStream, outStream: NodeJS.WritableStream): void;
|
||||
/**
|
||||
* Overload sendEvent to log
|
||||
*/
|
||||
sendEvent(event: DebugProtocol.Event): void;
|
||||
/**
|
||||
* Overload sendRequest to log
|
||||
*/
|
||||
sendRequest(command: string, args: any, timeout: number, cb: (response: DebugProtocol.Response) => void): void;
|
||||
/**
|
||||
* Overload sendResponse to log
|
||||
*/
|
||||
sendResponse(response: DebugProtocol.Response): void;
|
||||
protected dispatchRequest(request: DebugProtocol.Request): void;
|
||||
}
|
||||
49
build/node_modules/vscode-debugadapter/lib/loggingDebugSession.js
generated
vendored
Normal file
49
build/node_modules/vscode-debugadapter/lib/loggingDebugSession.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const Logger = require("./logger");
|
||||
const logger = Logger.logger;
|
||||
const debugSession_1 = require("./debugSession");
|
||||
class LoggingDebugSession extends debugSession_1.DebugSession {
|
||||
constructor(_logFilePath, obsolete_debuggerLinesAndColumnsStartAt1, obsolete_isServer) {
|
||||
super(obsolete_debuggerLinesAndColumnsStartAt1, obsolete_isServer);
|
||||
this._logFilePath = _logFilePath;
|
||||
}
|
||||
start(inStream, outStream) {
|
||||
super.start(inStream, outStream);
|
||||
logger.init(e => this.sendEvent(e), this._logFilePath, this._isServer);
|
||||
}
|
||||
/**
|
||||
* Overload sendEvent to log
|
||||
*/
|
||||
sendEvent(event) {
|
||||
if (!(event instanceof Logger.LogOutputEvent)) {
|
||||
// Don't create an infinite loop...
|
||||
logger.verbose(`To client: ${JSON.stringify(event)}`);
|
||||
}
|
||||
super.sendEvent(event);
|
||||
}
|
||||
/**
|
||||
* Overload sendRequest to log
|
||||
*/
|
||||
sendRequest(command, args, timeout, cb) {
|
||||
logger.verbose(`To client: ${JSON.stringify(command)}(${JSON.stringify(args)}), timeout: ${timeout}`);
|
||||
super.sendRequest(command, args, timeout, cb);
|
||||
}
|
||||
/**
|
||||
* Overload sendResponse to log
|
||||
*/
|
||||
sendResponse(response) {
|
||||
logger.verbose(`To client: ${JSON.stringify(response)}`);
|
||||
super.sendResponse(response);
|
||||
}
|
||||
dispatchRequest(request) {
|
||||
logger.verbose(`From client: ${request.command}(${JSON.stringify(request.arguments)})`);
|
||||
super.dispatchRequest(request);
|
||||
}
|
||||
}
|
||||
exports.LoggingDebugSession = LoggingDebugSession;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI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qIE92ZXJsb2FkIHNlbmRSZXNwb25zZSB0byBsb2dcblx0ICovXG5cdHB1YmxpYyBzZW5kUmVzcG9uc2UocmVzcG9uc2U6IERlYnVnUHJvdG9jb2wuUmVzcG9uc2UpOiB2b2lkIHtcblx0XHRsb2dnZXIudmVyYm9zZShgVG8gY2xpZW50OiAke0pTT04uc3RyaW5naWZ5KHJlc3BvbnNlKX1gKTtcblx0XHRzdXBlci5zZW5kUmVzcG9uc2UocmVzcG9uc2UpO1xuXHR9XG5cblx0cHJvdGVjdGVkIGRpc3BhdGNoUmVxdWVzdChyZXF1ZXN0OiBEZWJ1Z1Byb3RvY29sLlJlcXVlc3QpOiB2b2lkIHtcblx0XHRsb2dnZXIudmVyYm9zZShgRnJvbSBjbGllbnQ6ICR7cmVxdWVzdC5jb21tYW5kfSgke0pTT04uc3RyaW5naWZ5KHJlcXVlc3QuYXJndW1lbnRzKSB9KWApO1xuXHRcdHN1cGVyLmRpc3BhdGNoUmVxdWVzdChyZXF1ZXN0KTtcblx0fVxufVxuIl19
|
||||
7
build/node_modules/vscode-debugadapter/lib/main.d.ts
generated
vendored
Normal file
7
build/node_modules/vscode-debugadapter/lib/main.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, ContinuedEvent, OutputEvent, ThreadEvent, BreakpointEvent, ModuleEvent, LoadedSourceEvent, Thread, StackFrame, Scope, Variable, Breakpoint, Source, Module, CompletionItem, ErrorDestination } from './debugSession';
|
||||
import { LoggingDebugSession } from './loggingDebugSession';
|
||||
import * as Logger from './logger';
|
||||
import { Event, Response } from './messages';
|
||||
import { Handles } from './handles';
|
||||
declare const logger: Logger.Logger;
|
||||
export { DebugSession, LoggingDebugSession, Logger, logger, InitializedEvent, TerminatedEvent, StoppedEvent, ContinuedEvent, OutputEvent, ThreadEvent, BreakpointEvent, ModuleEvent, LoadedSourceEvent, Thread, StackFrame, Scope, Variable, Breakpoint, Source, Module, CompletionItem, ErrorDestination, Event, Response, Handles };
|
||||
38
build/node_modules/vscode-debugadapter/lib/main.js
generated
vendored
Normal file
38
build/node_modules/vscode-debugadapter/lib/main.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
'use strict';
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const debugSession_1 = require("./debugSession");
|
||||
exports.DebugSession = debugSession_1.DebugSession;
|
||||
exports.InitializedEvent = debugSession_1.InitializedEvent;
|
||||
exports.TerminatedEvent = debugSession_1.TerminatedEvent;
|
||||
exports.StoppedEvent = debugSession_1.StoppedEvent;
|
||||
exports.ContinuedEvent = debugSession_1.ContinuedEvent;
|
||||
exports.OutputEvent = debugSession_1.OutputEvent;
|
||||
exports.ThreadEvent = debugSession_1.ThreadEvent;
|
||||
exports.BreakpointEvent = debugSession_1.BreakpointEvent;
|
||||
exports.ModuleEvent = debugSession_1.ModuleEvent;
|
||||
exports.LoadedSourceEvent = debugSession_1.LoadedSourceEvent;
|
||||
exports.Thread = debugSession_1.Thread;
|
||||
exports.StackFrame = debugSession_1.StackFrame;
|
||||
exports.Scope = debugSession_1.Scope;
|
||||
exports.Variable = debugSession_1.Variable;
|
||||
exports.Breakpoint = debugSession_1.Breakpoint;
|
||||
exports.Source = debugSession_1.Source;
|
||||
exports.Module = debugSession_1.Module;
|
||||
exports.CompletionItem = debugSession_1.CompletionItem;
|
||||
exports.ErrorDestination = debugSession_1.ErrorDestination;
|
||||
const loggingDebugSession_1 = require("./loggingDebugSession");
|
||||
exports.LoggingDebugSession = loggingDebugSession_1.LoggingDebugSession;
|
||||
const Logger = require("./logger");
|
||||
exports.Logger = Logger;
|
||||
const messages_1 = require("./messages");
|
||||
exports.Event = messages_1.Event;
|
||||
exports.Response = messages_1.Response;
|
||||
const handles_1 = require("./handles");
|
||||
exports.Handles = handles_1.Handles;
|
||||
const logger = Logger.logger;
|
||||
exports.logger = logger;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Z0dBR2dHO0FBQ2hHLFlBQVksQ0FBQzs7QUFFYixpREFNd0I7QUFTdkIsdUJBZEEsMkJBQVksQ0FjQTtBQUlaLDJCQWpCQSwrQkFBZ0IsQ0FpQkE7QUFBRSwwQkFqQkEsOEJBQWUsQ0FpQkE7QUFBRSx1QkFqQkEsMkJBQVksQ0FpQkE7QUFBRSx5QkFqQkEsNkJBQWMsQ0FpQkE7QUFBRSxzQkFqQkEsMEJBQVcsQ0FpQkE7QUFBRSxzQkFqQkEsMEJBQVcsQ0FpQkE7QUFBRSwwQkFqQkEsOEJBQWUsQ0FpQkE7QUFBRSxzQkFqQkEsMEJBQVcsQ0FpQkE7QUFBRSw0QkFqQkEsZ0NBQWlCLENBaUJBO0FBQzFJLGlCQWpCQSxxQkFBTSxDQWlCQTtBQUFFLHFCQWpCQSx5QkFBVSxDQWlCQTtBQUFFLGdCQWpCQSxvQkFBSyxDQWlCQTtBQUFFLG1CQWpCQSx1QkFBUSxDQWlCQTtBQUNuQyxxQkFqQkEseUJBQVUsQ0FpQkE7QUFBRSxpQkFqQkEscUJBQU0sQ0FpQkE7QUFBRSxpQkFqQkEscUJBQU0sQ0FpQkE7QUFBRSx5QkFqQkEsNkJBQWMsQ0FpQkE7QUFDMUMsMkJBakJBLCtCQUFnQixDQWlCQTtBQWZqQiwrREFBMEQ7QUFTekQsOEJBVE8seUNBQW1CLENBU1A7QUFScEIsbUNBQW1DO0FBU2xDLHdCQUFNO0FBUlAseUNBQTZDO0FBYzVDLGdCQWRRLGdCQUFLLENBY1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kZWJ1Z1Nlc3Npb24nO1xuaW1wb3J0IHtMb2dnaW5nRGVidWdTZXNzaW9ufSBmcm9tICcuL2xvZ2dpbmdEZWJ1Z1Nlc3Npb24nO1xuaW1wb3J0ICogYXMgTG9nZ2VyIGZyb20gJy4vbG9nZ2VyJztcbmltcG9ydCB7IEV2ZW50LCBSZXNwb25zZSB9IGZyb20gJy4vbWVzc2FnZXMnO1xuaW1wb3J0IHsgSGFuZGxlcyB9IGZyb20gJy4vaGFuZGxlcyc7XG5cbmNvbnN0IGxvZ2dlciA9IExvZ2dlci5sb2dnZXI7XG5cbmV4cG9ydCB7XG5cdERlYnVnU2Vzc2lvbixcblx0TG9nZ2luZ0RlYnVnU2Vzc2lvbixcblx0TG9nZ2VyLFxuXHRsb2dnZXIsXG5cdEluaXRpYWxpemVkRXZlbnQsIFRlcm1pbmF0ZWRFdmVudCwgU3RvcHBlZEV2ZW50LCBDb250aW51ZWRFdmVudCwgT3V0cHV0RXZlbnQsIFRocmVhZEV2ZW50LCBCcmVha3BvaW50RXZlbnQsIE1vZHVsZUV2ZW50LCBMb2FkZWRTb3VyY2VFdmVudCxcblx0VGhyZWFkLCBTdGFja0ZyYW1lLCBTY29wZSwgVmFyaWFibGUsXG5cdEJyZWFrcG9pbnQsIFNvdXJjZSwgTW9kdWxlLCBDb21wbGV0aW9uSXRlbSxcblx0RXJyb3JEZXN0aW5hdGlvbixcblx0RXZlbnQsIFJlc3BvbnNlLFxuXHRIYW5kbGVzXG59XG4iXX0=
|
||||
16
build/node_modules/vscode-debugadapter/lib/messages.d.ts
generated
vendored
Normal file
16
build/node_modules/vscode-debugadapter/lib/messages.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { DebugProtocol } from 'vscode-debugprotocol';
|
||||
export declare class Message implements DebugProtocol.ProtocolMessage {
|
||||
seq: number;
|
||||
type: string;
|
||||
constructor(type: string);
|
||||
}
|
||||
export declare class Response extends Message implements DebugProtocol.Response {
|
||||
request_seq: number;
|
||||
success: boolean;
|
||||
command: string;
|
||||
constructor(request: DebugProtocol.Request, message?: string);
|
||||
}
|
||||
export declare class Event extends Message implements DebugProtocol.Event {
|
||||
event: string;
|
||||
constructor(event: string, body?: any);
|
||||
}
|
||||
39
build/node_modules/vscode-debugadapter/lib/messages.js
generated
vendored
Normal file
39
build/node_modules/vscode-debugadapter/lib/messages.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class Message {
|
||||
constructor(type) {
|
||||
this.seq = 0;
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
exports.Message = Message;
|
||||
class Response extends Message {
|
||||
constructor(request, message) {
|
||||
super('response');
|
||||
this.request_seq = request.seq;
|
||||
this.command = request.command;
|
||||
if (message) {
|
||||
this.success = false;
|
||||
this.message = message;
|
||||
}
|
||||
else {
|
||||
this.success = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.Response = Response;
|
||||
class Event extends Message {
|
||||
constructor(event, body) {
|
||||
super('event');
|
||||
this.event = event;
|
||||
if (body) {
|
||||
this.body = body;
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.Event = Event;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVzc2FnZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbWVzc2FnZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Z0dBR2dHOztBQUtoRztJQUlDLFlBQW1CLElBQVk7UUFDOUIsSUFBSSxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUM7UUFDYixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQzt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5cdFx0aWYgKG1lc3NhZ2UpIHtcblx0XHRcdHRoaXMuc3VjY2VzcyA9IGZhbHNlO1xuXHRcdFx0KDxhbnk+dGhpcykubWVzc2FnZSA9IG1lc3NhZ2U7XG5cdFx0fSBlbHNlIHtcblx0XHRcdHRoaXMuc3VjY2VzcyA9IHRydWU7XG5cdFx0fVxuXHR9XG59XG5cbmV4cG9ydCBjbGFzcyBFdmVudCBleHRlbmRzIE1lc3NhZ2UgaW1wbGVtZW50cyBEZWJ1Z1Byb3RvY29sLkV2ZW50IHtcblx0ZXZlbnQ6IHN0cmluZztcblxuXHRwdWJsaWMgY29uc3RydWN0b3IoZXZlbnQ6IHN0cmluZywgYm9keT86IGFueSkge1xuXHRcdHN1cGVyKCdldmVudCcpO1xuXHRcdHRoaXMuZXZlbnQgPSBldmVudDtcblx0XHRpZiAoYm9keSkge1xuXHRcdFx0KDxhbnk+dGhpcykuYm9keSA9IGJvZHk7XG5cdFx0fVxuXHR9XG59XG4iXX0=
|
||||
21
build/node_modules/vscode-debugadapter/lib/protocol.d.ts
generated
vendored
Normal file
21
build/node_modules/vscode-debugadapter/lib/protocol.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/// <reference types="node" />
|
||||
import * as ee from 'events';
|
||||
import { DebugProtocol } from 'vscode-debugprotocol';
|
||||
export declare class ProtocolServer extends ee.EventEmitter {
|
||||
private static TWO_CRLF;
|
||||
private _rawData;
|
||||
private _contentLength;
|
||||
private _sequence;
|
||||
private _writableStream;
|
||||
private _pendingRequests;
|
||||
constructor();
|
||||
start(inStream: NodeJS.ReadableStream, outStream: NodeJS.WritableStream): void;
|
||||
stop(): void;
|
||||
sendEvent(event: DebugProtocol.Event): void;
|
||||
sendResponse(response: DebugProtocol.Response): void;
|
||||
sendRequest(command: string, args: any, timeout: number, cb: (response: DebugProtocol.Response) => void): void;
|
||||
protected dispatchRequest(request: DebugProtocol.Request): void;
|
||||
private _emitEvent(event);
|
||||
private _send(typ, message);
|
||||
private _handleData(data);
|
||||
}
|
||||
136
build/node_modules/vscode-debugadapter/lib/protocol.js
generated
vendored
Normal file
136
build/node_modules/vscode-debugadapter/lib/protocol.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
56
build/node_modules/vscode-debugadapter/package.json
generated
vendored
Normal file
56
build/node_modules/vscode-debugadapter/package.json
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"_from": "vscode-debugadapter@^1.24.0",
|
||||
"_id": "vscode-debugadapter@1.25.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-tsOtNNKKTbnQanARdkFfUxI8qKVKba+QHOKWC1reDDeeyvzoNKkLMGkL/xsiKn5vQDeaP3zFBcLY8Ysak9GrvQ==",
|
||||
"_location": "/vscode-debugadapter",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "vscode-debugadapter@^1.24.0",
|
||||
"name": "vscode-debugadapter",
|
||||
"escapedName": "vscode-debugadapter",
|
||||
"rawSpec": "^1.24.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.24.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/prepack"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/vscode-debugadapter/-/vscode-debugadapter-1.25.0.tgz",
|
||||
"_shasum": "8b39ab4e0f7432a94ef51e3ec67c0c3e9fc98ab8",
|
||||
"_spec": "vscode-debugadapter@^1.24.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build/node_modules/prepack",
|
||||
"author": {
|
||||
"name": "Microsoft Corporation"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Microsoft/vscode-debugadapter-node/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"vscode-debugprotocol": "1.25.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Debug adapter implementation for node",
|
||||
"devDependencies": {
|
||||
"@types/node": "7.0.43",
|
||||
"typescript": "2.6.1"
|
||||
},
|
||||
"homepage": "https://github.com/Microsoft/vscode-debugadapter-node#readme",
|
||||
"license": "MIT",
|
||||
"main": "./lib/main.js",
|
||||
"name": "vscode-debugadapter",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Microsoft/vscode-debugadapter-node.git"
|
||||
},
|
||||
"scripts": {
|
||||
"compile": "tsc -p ./src",
|
||||
"prepublish": "tsc -p ./src",
|
||||
"watch": "tsc -w -p ./src"
|
||||
},
|
||||
"typings": "./lib/main",
|
||||
"version": "1.25.0"
|
||||
}
|
||||
31
build/node_modules/vscode-debugadapter/thirdpartynotices.txt
generated
vendored
Normal file
31
build/node_modules/vscode-debugadapter/thirdpartynotices.txt
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
||||
For Microsoft vscode-debugadapter-node
|
||||
|
||||
This project incorporates material from the project(s) listed below (collectively, “Third Party Code”).
|
||||
Microsoft is not the original author of the Third Party Code. The original copyright notice and license
|
||||
under which Microsoft received such Third Party Code are set out below. This Third Party Code is licensed
|
||||
to you under their original license terms set forth below. Microsoft reserves all other rights not expressly
|
||||
granted, whether by implication, estoppel or otherwise.
|
||||
|
||||
1. DefinitelyTyped version 0.0.1 (https://github.com/borisyankov/DefinitelyTyped)
|
||||
|
||||
This project is licensed under the MIT license.
|
||||
Copyrights are respective of each contributor listed at the beginning of each definition file.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
Reference in New Issue
Block a user