@sussudio/base
Version:
Internal APIs for VS Code's utilities and user interface building blocks.
28 lines (26 loc) • 1.04 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { URI } from './uri.mjs';
export interface IRemoteConsoleLog {
type: string;
severity: string;
arguments: string;
}
export interface IStackArgument {
__$stack: string;
}
export interface IStackFrame {
uri: URI;
line: number;
column: number;
}
export declare function isRemoteConsoleLog(obj: any): obj is IRemoteConsoleLog;
export declare function parse(entry: IRemoteConsoleLog): {
args: any[];
stack?: string;
};
export declare function getFirstFrame(entry: IRemoteConsoleLog): IStackFrame | undefined;
export declare function getFirstFrame(stack: string | undefined): IStackFrame | undefined;
export declare function log(entry: IRemoteConsoleLog, label: string): void;