mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Vscode merge (#4582)
* Merge from vscode 37cb23d3dd4f9433d56d4ba5ea3203580719a0bd * fix issues with merges * bump node version in azpipe * replace license headers * remove duplicate launch task * fix build errors * fix build errors * fix tslint issues * working through package and linux build issues * more work * wip * fix packaged builds * working through linux build errors * wip * wip * wip * fix mac and linux file limits * iterate linux pipeline * disable editor typing * revert series to parallel * remove optimize vscode from linux * fix linting issues * revert testing change * add work round for new node * readd packaging for extensions * fix issue with angular not resolving decorator dependencies
This commit is contained in:
124
src/typings/bootstrap.d.ts
vendored
124
src/typings/bootstrap.d.ts
vendored
@@ -1,124 +0,0 @@
|
||||
// Generated by typings
|
||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/e94e9a86308b7306bb74a973c4e18f37895f7298/bootstrap/index.d.ts
|
||||
interface ModalOptions {
|
||||
backdrop?: boolean|string;
|
||||
keyboard?: boolean;
|
||||
show?: boolean;
|
||||
remote?: string;
|
||||
}
|
||||
|
||||
interface ModalOptionsBackdropString {
|
||||
backdrop?: string; // for "static"
|
||||
keyboard?: boolean;
|
||||
show?: boolean;
|
||||
remote?: string;
|
||||
}
|
||||
|
||||
interface ScrollSpyOptions {
|
||||
offset?: number;
|
||||
target?: string;
|
||||
}
|
||||
|
||||
interface TooltipOptions {
|
||||
animation?: boolean;
|
||||
html?: boolean;
|
||||
placement?: string | Function;
|
||||
selector?: string;
|
||||
title?: string | Function;
|
||||
trigger?: string;
|
||||
template?: string;
|
||||
delay?: number | Object;
|
||||
container?: string | boolean;
|
||||
viewport?: string | Function | Object;
|
||||
}
|
||||
|
||||
interface PopoverOptions {
|
||||
animation?: boolean;
|
||||
html?: boolean;
|
||||
placement?: string | Function;
|
||||
selector?: string;
|
||||
trigger?: string;
|
||||
title?: string | Function;
|
||||
template?: string;
|
||||
content?: any;
|
||||
delay?: number | Object;
|
||||
container?: string | boolean;
|
||||
viewport?: string | Function | Object;
|
||||
}
|
||||
|
||||
interface CollapseOptions {
|
||||
parent?: any;
|
||||
toggle?: boolean;
|
||||
}
|
||||
|
||||
interface CarouselOptions {
|
||||
interval?: number;
|
||||
pause?: string;
|
||||
wrap?: boolean;
|
||||
keybord?: boolean;
|
||||
}
|
||||
|
||||
interface TypeaheadOptions {
|
||||
source?: any;
|
||||
items?: number;
|
||||
minLength?: number;
|
||||
matcher?: (item: any) => boolean;
|
||||
sorter?: (items: any[]) => any[];
|
||||
updater?: (item: any) => any;
|
||||
highlighter?: (item: any) => string;
|
||||
}
|
||||
|
||||
interface AffixOptions {
|
||||
offset?: number | Function | Object;
|
||||
target?: any;
|
||||
}
|
||||
|
||||
interface TransitionEventNames {
|
||||
end: string;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
modal(options?: ModalOptions): JQuery;
|
||||
modal(options?: ModalOptionsBackdropString): JQuery;
|
||||
modal(command: string): JQuery;
|
||||
|
||||
dropdown(): JQuery;
|
||||
dropdown(command: string): JQuery;
|
||||
|
||||
scrollspy(command: string): JQuery;
|
||||
scrollspy(options?: ScrollSpyOptions): JQuery;
|
||||
|
||||
tab(): JQuery;
|
||||
tab(command: string): JQuery;
|
||||
|
||||
tooltip(options?: TooltipOptions): JQuery;
|
||||
tooltip(command: string): JQuery;
|
||||
|
||||
popover(options?: PopoverOptions): JQuery;
|
||||
popover(command: string): JQuery;
|
||||
|
||||
alert(): JQuery;
|
||||
alert(command: string): JQuery;
|
||||
|
||||
button(): JQuery;
|
||||
button(command: string): JQuery;
|
||||
|
||||
collapse(options?: CollapseOptions): JQuery;
|
||||
collapse(command: string): JQuery;
|
||||
|
||||
carousel(options?: CarouselOptions): JQuery;
|
||||
carousel(command: string): JQuery;
|
||||
|
||||
typeahead(options?: TypeaheadOptions): JQuery;
|
||||
|
||||
affix(options?: AffixOptions): JQuery;
|
||||
|
||||
emulateTransitionEnd(duration: number): JQuery;
|
||||
}
|
||||
|
||||
interface JQuerySupport {
|
||||
transition: boolean | TransitionEventNames;
|
||||
}
|
||||
|
||||
declare module "bootstrap" {
|
||||
}
|
||||
10
src/typings/comment-json.d.ts
vendored
10
src/typings/comment-json.d.ts
vendored
@@ -1,10 +0,0 @@
|
||||
// Type definitions for comment-json 1.1
|
||||
// Project: https://github.com/kaelzhang/node-comment-json
|
||||
// Definitions by: Jason Dent <https://github.com/Jason3S>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module "comment-json" {
|
||||
export type Reviver = (k: number | string, v: any) => any;
|
||||
export function parse(json: string, reviver?: Reviver, removes_comments?: boolean): any;
|
||||
export function stringify(value: any, replacer?: any, space?: string | number): string;
|
||||
}
|
||||
7
src/typings/electron.d.ts
vendored
7
src/typings/electron.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Electron 3.1.2
|
||||
// Type definitions for Electron 3.1.6
|
||||
// Project: http://electronjs.org/
|
||||
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
||||
// Definitions: https://github.com/electron/electron-typescript-definitions
|
||||
@@ -7869,6 +7869,11 @@ declare namespace Electron {
|
||||
* Should only be specified for checkbox or radio type menu items.
|
||||
*/
|
||||
checked?: boolean;
|
||||
/**
|
||||
* If false, the accelerator won't be registered with the system, but it will still
|
||||
* be displayed. Defaults to true.
|
||||
*/
|
||||
registerAccelerator?: boolean;
|
||||
/**
|
||||
* Should be specified for submenu type menu items. If submenu is specified, the
|
||||
* type: 'submenu' can be omitted. If the value is not a then it will be
|
||||
|
||||
8
src/typings/es6-promise.d.ts
vendored
8
src/typings/es6-promise.d.ts
vendored
@@ -44,8 +44,12 @@ declare namespace Promise {
|
||||
* Make a new promise from the thenable.
|
||||
* A thenable is promise-like in as far as it has a "then" method.
|
||||
*/
|
||||
function resolve(): Promise<any>;
|
||||
function resolve<T>(value?: T | Thenable<T>): Promise<T>;
|
||||
function resolve<T>(value: T | Thenable<T>): Promise<T>;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function resolve(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Make a promise that rejects to obj. For consistency and debugging (eg stack traces), obj should be an instanceof Error
|
||||
|
||||
7
src/typings/fast-plist.d.ts
vendored
7
src/typings/fast-plist.d.ts
vendored
@@ -1,7 +0,0 @@
|
||||
|
||||
declare module "fast-plist" {
|
||||
/**
|
||||
* A very fast plist parser
|
||||
*/
|
||||
export function parse(content: string): any;
|
||||
}
|
||||
82
src/typings/globals/core-js/index.d.ts
vendored
82
src/typings/globals/core-js/index.d.ts
vendored
@@ -443,7 +443,7 @@ interface SymbolConstructor {
|
||||
/**
|
||||
* A reference to the prototype.
|
||||
*/
|
||||
prototype: Symbol;
|
||||
readonly prototype: Symbol;
|
||||
|
||||
/**
|
||||
* Returns a new unique Symbol value.
|
||||
@@ -600,56 +600,6 @@ interface JSON {
|
||||
// Modules: es6.map, es6.set, es6.weak-map, and es6.weak-set
|
||||
// #############################################################################################
|
||||
|
||||
interface Map<K, V> {
|
||||
clear(): void;
|
||||
delete(key: K): boolean;
|
||||
forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
|
||||
get(key: K): V;
|
||||
has(key: K): boolean;
|
||||
set(key: K, value?: V): Map<K, V>;
|
||||
size: number;
|
||||
}
|
||||
|
||||
interface MapConstructor {
|
||||
new <K, V>(): Map<K, V>;
|
||||
new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
|
||||
prototype: Map<any, any>;
|
||||
}
|
||||
|
||||
declare var Map: MapConstructor;
|
||||
|
||||
interface Set<T> {
|
||||
add(value: T): Set<T>;
|
||||
clear(): void;
|
||||
delete(value: T): boolean;
|
||||
forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
|
||||
has(value: T): boolean;
|
||||
size: number;
|
||||
}
|
||||
|
||||
interface SetConstructor {
|
||||
new <T>(): Set<T>;
|
||||
new <T>(iterable: Iterable<T>): Set<T>;
|
||||
prototype: Set<any>;
|
||||
}
|
||||
|
||||
declare var Set: SetConstructor;
|
||||
|
||||
interface WeakMap<K, V> {
|
||||
delete(key: K): boolean;
|
||||
get(key: K): V;
|
||||
has(key: K): boolean;
|
||||
set(key: K, value?: V): WeakMap<K, V>;
|
||||
}
|
||||
|
||||
interface WeakMapConstructor {
|
||||
new <K, V>(): WeakMap<K, V>;
|
||||
new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
|
||||
prototype: WeakMap<any, any>;
|
||||
}
|
||||
|
||||
declare var WeakMap: WeakMapConstructor;
|
||||
|
||||
interface WeakSet<T> {
|
||||
add(value: T): WeakSet<T>;
|
||||
delete(value: T): boolean;
|
||||
@@ -657,9 +607,9 @@ interface WeakSet<T> {
|
||||
}
|
||||
|
||||
interface WeakSetConstructor {
|
||||
new <T>(): WeakSet<T>;
|
||||
new <T>(iterable: Iterable<T>): WeakSet<T>;
|
||||
prototype: WeakSet<any>;
|
||||
new <T extends object>(): WeakSet<T>;
|
||||
new <T extends object>(iterable: Iterable<T>): WeakSet<T>;
|
||||
readonly prototype: WeakSet<any>;
|
||||
}
|
||||
|
||||
declare var WeakSet: WeakSetConstructor;
|
||||
@@ -671,7 +621,7 @@ declare var WeakSet: WeakSetConstructor;
|
||||
|
||||
interface IteratorResult<T> {
|
||||
done: boolean;
|
||||
value?: T;
|
||||
value: T;
|
||||
}
|
||||
|
||||
interface Iterator<T> {
|
||||
@@ -713,20 +663,6 @@ interface Array<T> {
|
||||
values(): IterableIterator<T>;
|
||||
}
|
||||
|
||||
interface Map<K, V> {
|
||||
entries(): IterableIterator<[K, V]>;
|
||||
keys(): IterableIterator<K>;
|
||||
values(): IterableIterator<V>;
|
||||
[Symbol.iterator](): IterableIterator<[K, V]>;
|
||||
}
|
||||
|
||||
interface Set<T> {
|
||||
entries(): IterableIterator<[T, T]>;
|
||||
keys(): IterableIterator<T>;
|
||||
values(): IterableIterator<T>;
|
||||
[Symbol.iterator](): IterableIterator<T>;
|
||||
}
|
||||
|
||||
interface NodeList {
|
||||
[Symbol.iterator](): IterableIterator<Node>;
|
||||
}
|
||||
@@ -897,14 +833,6 @@ interface RegExpConstructor {
|
||||
escape(str: string): string;
|
||||
}
|
||||
|
||||
interface Map<K, V> {
|
||||
toJSON(): any;
|
||||
}
|
||||
|
||||
interface Set<T> {
|
||||
toJSON(): any;
|
||||
}
|
||||
|
||||
// #############################################################################################
|
||||
// Mozilla JavaScript: Array generics
|
||||
// Modules: js.array.statics
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"resolution": "main",
|
||||
"tree": {
|
||||
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/ead8376ca80553332af7872f9fe723c6fbb4e412/jqueryui/index.d.ts",
|
||||
"raw": "registry:dt/jqueryui#1.11.0+20161214061125",
|
||||
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/ead8376ca80553332af7872f9fe723c6fbb4e412/jqueryui/index.d.ts"
|
||||
}
|
||||
}
|
||||
821
src/typings/lib.ie11_safe_es6.d.ts
vendored
Normal file
821
src/typings/lib.ie11_safe_es6.d.ts
vendored
Normal file
@@ -0,0 +1,821 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Defined a subset of ES6 built ins that run in IE11
|
||||
// CHECK WITH http://kangax.github.io/compat-table/es6/#ie11
|
||||
|
||||
interface Map<K, V> {
|
||||
clear(): void;
|
||||
delete(key: K): boolean;
|
||||
forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
|
||||
get(key: K): V | undefined;
|
||||
has(key: K): boolean;
|
||||
set(key: K, value?: V): Map<K, V>;
|
||||
readonly size: number;
|
||||
|
||||
// not supported on IE11:
|
||||
// entries(): IterableIterator<[K, V]>;
|
||||
// keys(): IterableIterator<K>;
|
||||
// values(): IterableIterator<V>;
|
||||
// [Symbol.iterator]():IterableIterator<[K,V]>;
|
||||
// [Symbol.toStringTag]: string;
|
||||
}
|
||||
|
||||
interface MapConstructor {
|
||||
new <K, V>(): Map<K, V>;
|
||||
prototype: Map<any, any>;
|
||||
|
||||
// not supported on IE11:
|
||||
// new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
|
||||
}
|
||||
declare var Map: MapConstructor;
|
||||
|
||||
|
||||
interface Set<T> {
|
||||
add(value: T): Set<T>;
|
||||
clear(): void;
|
||||
delete(value: T): boolean;
|
||||
forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
|
||||
has(value: T): boolean;
|
||||
readonly size: number;
|
||||
|
||||
// not supported on IE11:
|
||||
// entries(): IterableIterator<[T, T]>;
|
||||
// keys(): IterableIterator<T>;
|
||||
// values(): IterableIterator<T>;
|
||||
// [Symbol.iterator]():IterableIterator<T>;
|
||||
// [Symbol.toStringTag]: string;
|
||||
}
|
||||
|
||||
interface SetConstructor {
|
||||
new <T>(): Set<T>;
|
||||
prototype: Set<any>;
|
||||
|
||||
// not supported on IE11:
|
||||
// new <T>(iterable: Iterable<T>): Set<T>;
|
||||
}
|
||||
declare var Set: SetConstructor;
|
||||
|
||||
|
||||
interface WeakMap<K extends object, V> {
|
||||
delete(key: K): boolean;
|
||||
get(key: K): V | undefined;
|
||||
has(key: K): boolean;
|
||||
// IE11 doesn't return this
|
||||
// set(key: K, value?: V): this;
|
||||
set(key: K, value?: V): undefined;
|
||||
}
|
||||
|
||||
interface WeakMapConstructor {
|
||||
new(): WeakMap<any, any>;
|
||||
new <K extends object, V>(): WeakMap<K, V>;
|
||||
// new <K, V>(entries?: [K, V][]): WeakMap<K, V>;
|
||||
readonly prototype: WeakMap<object, any>;
|
||||
}
|
||||
declare var WeakMap: WeakMapConstructor;
|
||||
|
||||
|
||||
// /**
|
||||
// * Represents a raw buffer of binary data, which is used to store data for the
|
||||
// * different typed arrays. ArrayBuffers cannot be read from or written to directly,
|
||||
// * but can be passed to a typed array or DataView Object to interpret the raw
|
||||
// * buffer as needed.
|
||||
// */
|
||||
// interface ArrayBuffer {
|
||||
// /**
|
||||
// * Read-only. The length of the ArrayBuffer (in bytes).
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * Returns a section of an ArrayBuffer.
|
||||
// */
|
||||
// slice(begin: number, end?: number): ArrayBuffer;
|
||||
// }
|
||||
|
||||
// interface ArrayBufferConstructor {
|
||||
// readonly prototype: ArrayBuffer;
|
||||
// new (byteLength: number): ArrayBuffer;
|
||||
// isView(arg: any): arg is ArrayBufferView;
|
||||
// }
|
||||
// declare const ArrayBuffer: ArrayBufferConstructor;
|
||||
|
||||
// interface ArrayBufferView {
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// byteOffset: number;
|
||||
// }
|
||||
|
||||
// interface DataView {
|
||||
// readonly buffer: ArrayBuffer;
|
||||
// readonly byteLength: number;
|
||||
// readonly byteOffset: number;
|
||||
// /**
|
||||
// * Gets the Float32 value at the specified byte offset from the start of the view. There is
|
||||
// * no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
// * @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
// */
|
||||
// getFloat32(byteOffset: number, littleEndian?: boolean): number;
|
||||
|
||||
// /**
|
||||
// * Gets the Float64 value at the specified byte offset from the start of the view. There is
|
||||
// * no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
// * @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
// */
|
||||
// getFloat64(byteOffset: number, littleEndian?: boolean): number;
|
||||
|
||||
// /**
|
||||
// * Gets the Int8 value at the specified byte offset from the start of the view. There is
|
||||
// * no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
// * @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
// */
|
||||
// getInt8(byteOffset: number): number;
|
||||
|
||||
// /**
|
||||
// * Gets the Int16 value at the specified byte offset from the start of the view. There is
|
||||
// * no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
// * @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
// */
|
||||
// getInt16(byteOffset: number, littleEndian?: boolean): number;
|
||||
// /**
|
||||
// * Gets the Int32 value at the specified byte offset from the start of the view. There is
|
||||
// * no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
// * @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
// */
|
||||
// getInt32(byteOffset: number, littleEndian?: boolean): number;
|
||||
|
||||
// /**
|
||||
// * Gets the Uint8 value at the specified byte offset from the start of the view. There is
|
||||
// * no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
// * @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
// */
|
||||
// getUint8(byteOffset: number): number;
|
||||
|
||||
// /**
|
||||
// * Gets the Uint16 value at the specified byte offset from the start of the view. There is
|
||||
// * no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
// * @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
// */
|
||||
// getUint16(byteOffset: number, littleEndian?: boolean): number;
|
||||
|
||||
// /**
|
||||
// * Gets the Uint32 value at the specified byte offset from the start of the view. There is
|
||||
// * no alignment constraint; multi-byte values may be fetched from any offset.
|
||||
// * @param byteOffset The place in the buffer at which the value should be retrieved.
|
||||
// */
|
||||
// getUint32(byteOffset: number, littleEndian?: boolean): number;
|
||||
|
||||
// /**
|
||||
// * Stores an Float32 value at the specified byte offset from the start of the view.
|
||||
// * @param byteOffset The place in the buffer at which the value should be set.
|
||||
// * @param value The value to set.
|
||||
// * @param littleEndian If false or undefined, a big-endian value should be written,
|
||||
// * otherwise a little-endian value should be written.
|
||||
// */
|
||||
// setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||
|
||||
// /**
|
||||
// * Stores an Float64 value at the specified byte offset from the start of the view.
|
||||
// * @param byteOffset The place in the buffer at which the value should be set.
|
||||
// * @param value The value to set.
|
||||
// * @param littleEndian If false or undefined, a big-endian value should be written,
|
||||
// * otherwise a little-endian value should be written.
|
||||
// */
|
||||
// setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||
|
||||
// /**
|
||||
// * Stores an Int8 value at the specified byte offset from the start of the view.
|
||||
// * @param byteOffset The place in the buffer at which the value should be set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// setInt8(byteOffset: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Stores an Int16 value at the specified byte offset from the start of the view.
|
||||
// * @param byteOffset The place in the buffer at which the value should be set.
|
||||
// * @param value The value to set.
|
||||
// * @param littleEndian If false or undefined, a big-endian value should be written,
|
||||
// * otherwise a little-endian value should be written.
|
||||
// */
|
||||
// setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||
|
||||
// /**
|
||||
// * Stores an Int32 value at the specified byte offset from the start of the view.
|
||||
// * @param byteOffset The place in the buffer at which the value should be set.
|
||||
// * @param value The value to set.
|
||||
// * @param littleEndian If false or undefined, a big-endian value should be written,
|
||||
// * otherwise a little-endian value should be written.
|
||||
// */
|
||||
// setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||
|
||||
// /**
|
||||
// * Stores an Uint8 value at the specified byte offset from the start of the view.
|
||||
// * @param byteOffset The place in the buffer at which the value should be set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// setUint8(byteOffset: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Stores an Uint16 value at the specified byte offset from the start of the view.
|
||||
// * @param byteOffset The place in the buffer at which the value should be set.
|
||||
// * @param value The value to set.
|
||||
// * @param littleEndian If false or undefined, a big-endian value should be written,
|
||||
// * otherwise a little-endian value should be written.
|
||||
// */
|
||||
// setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||
|
||||
// /**
|
||||
// * Stores an Uint32 value at the specified byte offset from the start of the view.
|
||||
// * @param byteOffset The place in the buffer at which the value should be set.
|
||||
// * @param value The value to set.
|
||||
// * @param littleEndian If false or undefined, a big-endian value should be written,
|
||||
// * otherwise a little-endian value should be written.
|
||||
// */
|
||||
// setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
||||
// }
|
||||
|
||||
// interface DataViewConstructor {
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
|
||||
// }
|
||||
// declare const DataView: DataViewConstructor;
|
||||
|
||||
|
||||
// /**
|
||||
// * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
|
||||
// * number of bytes could not be allocated an exception is raised.
|
||||
// */
|
||||
// interface Int8Array {
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// readonly buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// readonly byteOffset: number;
|
||||
|
||||
// /**
|
||||
// * The length of the array.
|
||||
// */
|
||||
// readonly length: number;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param index The index of the location to set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// set(index: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param array A typed or untyped array of values to set.
|
||||
// * @param offset The index in the current array at which the values are to be written.
|
||||
// */
|
||||
// set(array: ArrayLike<number>, offset?: number): void;
|
||||
|
||||
// /**
|
||||
// * Converts a number to a string by using the current locale.
|
||||
// */
|
||||
// toLocaleString(): string;
|
||||
|
||||
// /**
|
||||
// * Returns a string representation of an array.
|
||||
// */
|
||||
// toString(): string;
|
||||
|
||||
// [index: number]: number;
|
||||
// }
|
||||
// interface Int8ArrayConstructor {
|
||||
// readonly prototype: Int8Array;
|
||||
// new (length: number): Int8Array;
|
||||
// new (array: ArrayLike<number>): Int8Array;
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
|
||||
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// }
|
||||
// declare const Int8Array: Int8ArrayConstructor;
|
||||
|
||||
// /**
|
||||
// * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
|
||||
// * requested number of bytes could not be allocated an exception is raised.
|
||||
// */
|
||||
// interface Uint8Array {
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// readonly buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// readonly byteOffset: number;
|
||||
|
||||
// /**
|
||||
// * The length of the array.
|
||||
// */
|
||||
// readonly length: number;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param index The index of the location to set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// set(index: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param array A typed or untyped array of values to set.
|
||||
// * @param offset The index in the current array at which the values are to be written.
|
||||
// */
|
||||
// set(array: ArrayLike<number>, offset?: number): void;
|
||||
|
||||
// /**
|
||||
// * Converts a number to a string by using the current locale.
|
||||
// */
|
||||
// toLocaleString(): string;
|
||||
|
||||
// /**
|
||||
// * Returns a string representation of an array.
|
||||
// */
|
||||
// toString(): string;
|
||||
|
||||
// [index: number]: number;
|
||||
// }
|
||||
|
||||
// interface Uint8ArrayConstructor {
|
||||
// readonly prototype: Uint8Array;
|
||||
// new (length: number): Uint8Array;
|
||||
// new (array: ArrayLike<number>): Uint8Array;
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
|
||||
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// }
|
||||
// declare const Uint8Array: Uint8ArrayConstructor;
|
||||
|
||||
|
||||
// /**
|
||||
// * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
|
||||
// * requested number of bytes could not be allocated an exception is raised.
|
||||
// */
|
||||
// interface Int16Array {
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// readonly buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// readonly byteOffset: number;
|
||||
|
||||
// /**
|
||||
// * The length of the array.
|
||||
// */
|
||||
// readonly length: number;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param index The index of the location to set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// set(index: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param array A typed or untyped array of values to set.
|
||||
// * @param offset The index in the current array at which the values are to be written.
|
||||
// */
|
||||
// set(array: ArrayLike<number>, offset?: number): void;
|
||||
|
||||
// /**
|
||||
// * Converts a number to a string by using the current locale.
|
||||
// */
|
||||
// toLocaleString(): string;
|
||||
|
||||
// /**
|
||||
// * Returns a string representation of an array.
|
||||
// */
|
||||
// toString(): string;
|
||||
|
||||
// [index: number]: number;
|
||||
// }
|
||||
|
||||
// interface Int16ArrayConstructor {
|
||||
// readonly prototype: Int16Array;
|
||||
// new (length: number): Int16Array;
|
||||
// new (array: ArrayLike<number>): Int16Array;
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
|
||||
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// }
|
||||
// declare const Int16Array: Int16ArrayConstructor;
|
||||
|
||||
// /**
|
||||
// * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
|
||||
// * requested number of bytes could not be allocated an exception is raised.
|
||||
// */
|
||||
// interface Uint16Array {
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// readonly buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// readonly byteOffset: number;
|
||||
|
||||
// /**
|
||||
// * The length of the array.
|
||||
// */
|
||||
// readonly length: number;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param index The index of the location to set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// set(index: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param array A typed or untyped array of values to set.
|
||||
// * @param offset The index in the current array at which the values are to be written.
|
||||
// */
|
||||
// set(array: ArrayLike<number>, offset?: number): void;
|
||||
|
||||
// /**
|
||||
// * Converts a number to a string by using the current locale.
|
||||
// */
|
||||
// toLocaleString(): string;
|
||||
|
||||
// /**
|
||||
// * Returns a string representation of an array.
|
||||
// */
|
||||
// toString(): string;
|
||||
|
||||
// [index: number]: number;
|
||||
// }
|
||||
|
||||
// interface Uint16ArrayConstructor {
|
||||
// readonly prototype: Uint16Array;
|
||||
// new (length: number): Uint16Array;
|
||||
// new (array: ArrayLike<number>): Uint16Array;
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
|
||||
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// }
|
||||
// declare const Uint16Array: Uint16ArrayConstructor;
|
||||
// /**
|
||||
// * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
|
||||
// * requested number of bytes could not be allocated an exception is raised.
|
||||
// */
|
||||
// interface Int32Array {
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// readonly buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// readonly byteOffset: number;
|
||||
|
||||
// /**
|
||||
// * The length of the array.
|
||||
// */
|
||||
// readonly length: number;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param index The index of the location to set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// set(index: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param array A typed or untyped array of values to set.
|
||||
// * @param offset The index in the current array at which the values are to be written.
|
||||
// */
|
||||
// set(array: ArrayLike<number>, offset?: number): void;
|
||||
|
||||
// /**
|
||||
// * Converts a number to a string by using the current locale.
|
||||
// */
|
||||
// toLocaleString(): string;
|
||||
|
||||
// /**
|
||||
// * Returns a string representation of an array.
|
||||
// */
|
||||
// toString(): string;
|
||||
|
||||
// [index: number]: number;
|
||||
// }
|
||||
|
||||
// interface Int32ArrayConstructor {
|
||||
// readonly prototype: Int32Array;
|
||||
// new (length: number): Int32Array;
|
||||
// new (array: ArrayLike<number>): Int32Array;
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
|
||||
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
// }
|
||||
|
||||
// declare const Int32Array: Int32ArrayConstructor;
|
||||
|
||||
// /**
|
||||
// * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
|
||||
// * requested number of bytes could not be allocated an exception is raised.
|
||||
// */
|
||||
// interface Uint32Array {
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// readonly buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// readonly byteOffset: number;
|
||||
|
||||
// /**
|
||||
// * The length of the array.
|
||||
// */
|
||||
// readonly length: number;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param index The index of the location to set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// set(index: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param array A typed or untyped array of values to set.
|
||||
// * @param offset The index in the current array at which the values are to be written.
|
||||
// */
|
||||
// set(array: ArrayLike<number>, offset?: number): void;
|
||||
|
||||
// /**
|
||||
// * Converts a number to a string by using the current locale.
|
||||
// */
|
||||
// toLocaleString(): string;
|
||||
|
||||
// /**
|
||||
// * Returns a string representation of an array.
|
||||
// */
|
||||
// toString(): string;
|
||||
|
||||
// [index: number]: number;
|
||||
// }
|
||||
|
||||
// interface Uint32ArrayConstructor {
|
||||
// readonly prototype: Uint32Array;
|
||||
// new (length: number): Uint32Array;
|
||||
// new (array: ArrayLike<number>): Uint32Array;
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
|
||||
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
// }
|
||||
|
||||
// declare const Uint32Array: Uint32ArrayConstructor;
|
||||
|
||||
// /**
|
||||
// * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
|
||||
// * of bytes could not be allocated an exception is raised.
|
||||
// */
|
||||
// interface Float32Array {
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// readonly buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// readonly byteOffset: number;
|
||||
|
||||
// /**
|
||||
// * The length of the array.
|
||||
// */
|
||||
// readonly length: number;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param index The index of the location to set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// set(index: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param array A typed or untyped array of values to set.
|
||||
// * @param offset The index in the current array at which the values are to be written.
|
||||
// */
|
||||
// set(array: ArrayLike<number>, offset?: number): void;
|
||||
|
||||
// /**
|
||||
// * Converts a number to a string by using the current locale.
|
||||
// */
|
||||
// toLocaleString(): string;
|
||||
|
||||
// /**
|
||||
// * Returns a string representation of an array.
|
||||
// */
|
||||
// toString(): string;
|
||||
|
||||
// [index: number]: number;
|
||||
// }
|
||||
|
||||
// interface Float32ArrayConstructor {
|
||||
// readonly prototype: Float32Array;
|
||||
// new (length: number): Float32Array;
|
||||
// new (array: ArrayLike<number>): Float32Array;
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
|
||||
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// }
|
||||
// declare const Float32Array: Float32ArrayConstructor;
|
||||
|
||||
// /**
|
||||
// * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
|
||||
// * number of bytes could not be allocated an exception is raised.
|
||||
// */
|
||||
// interface Float64Array {
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
|
||||
// /**
|
||||
// * The ArrayBuffer instance referenced by the array.
|
||||
// */
|
||||
// readonly buffer: ArrayBuffer;
|
||||
|
||||
// /**
|
||||
// * The length in bytes of the array.
|
||||
// */
|
||||
// readonly byteLength: number;
|
||||
|
||||
// /**
|
||||
// * The offset in bytes of the array.
|
||||
// */
|
||||
// readonly byteOffset: number;
|
||||
|
||||
// /**
|
||||
// * The length of the array.
|
||||
// */
|
||||
// readonly length: number;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param index The index of the location to set.
|
||||
// * @param value The value to set.
|
||||
// */
|
||||
// set(index: number, value: number): void;
|
||||
|
||||
// /**
|
||||
// * Sets a value or an array of values.
|
||||
// * @param array A typed or untyped array of values to set.
|
||||
// * @param offset The index in the current array at which the values are to be written.
|
||||
// */
|
||||
// set(array: ArrayLike<number>, offset?: number): void;
|
||||
|
||||
// /**
|
||||
// * Converts a number to a string by using the current locale.
|
||||
// */
|
||||
// toLocaleString(): string;
|
||||
|
||||
// /**
|
||||
// * Returns a string representation of an array.
|
||||
// */
|
||||
// toString(): string;
|
||||
|
||||
// [index: number]: number;
|
||||
// }
|
||||
|
||||
// interface Float64ArrayConstructor {
|
||||
// readonly prototype: Float64Array;
|
||||
// new (length: number): Float64Array;
|
||||
// new (array: ArrayLike<number>): Float64Array;
|
||||
// new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
|
||||
|
||||
// /**
|
||||
// * The size in bytes of each element in the array.
|
||||
// */
|
||||
// readonly BYTES_PER_ELEMENT: number;
|
||||
// }
|
||||
|
||||
// declare const Float64Array: Float64ArrayConstructor;
|
||||
23
src/typings/lib.webworker.importscripts.d.ts
vendored
Normal file
23
src/typings/lib.webworker.importscripts.d.ts
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */
|
||||
|
||||
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
/// WorkerGlobalScope APIs
|
||||
/////////////////////////////
|
||||
// These are only available in a Web Worker
|
||||
declare function importScripts(...urls: string[]): void;
|
||||
@@ -1,10 +0,0 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'original-fs' {
|
||||
import * as fs from 'fs';
|
||||
|
||||
//export = fs;
|
||||
}
|
||||
23
src/typings/pty.js.d.ts
vendored
23
src/typings/pty.js.d.ts
vendored
@@ -1,23 +0,0 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'pty.js' {
|
||||
export function fork(file: string, args: string[], options: any): Terminal;
|
||||
export function spawn(file: string, args: string[], options: any): Terminal;
|
||||
export function createTerminal(file: string, args: string[], options: any): Terminal;
|
||||
|
||||
export interface Terminal {
|
||||
/**
|
||||
* The title of the active process.
|
||||
*/
|
||||
process: string;
|
||||
|
||||
on(event: string, callback: (data: any) => void): void;
|
||||
|
||||
resize(columns: number, rows: number): void;
|
||||
|
||||
write(data: string): void;
|
||||
}
|
||||
}
|
||||
8
src/typings/splash.d.ts
vendored
8
src/typings/splash.d.ts
vendored
@@ -1,8 +0,0 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare function hideSplash(): void;
|
||||
|
||||
declare const splash: Electron.BrowserWindow;
|
||||
@@ -3,6 +3,7 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'error-ex' {
|
||||
export function errorEx(name) : void;
|
||||
declare module 'vscode-windows-registry' {
|
||||
export type HKEY = "HKEY_CURRENT_USER" | "HKEY_LOCAL_MACHINE" | "HKEY_CLASSES_ROOT" | "HKEY_USERS" | "HKEY_CURRENT_CONFIG";
|
||||
export function GetStringRegKey(hive: HKEY, path: string, name: string): string | undefined;
|
||||
}
|
||||
547
src/typings/xterm.d.ts
vendored
547
src/typings/xterm.d.ts
vendored
@@ -1,547 +0,0 @@
|
||||
/**
|
||||
* @license MIT
|
||||
*
|
||||
* This contains the type declarations for the xterm.js library. Note that
|
||||
* some interfaces differ between this file and the actual implementation in
|
||||
* src/, that's because this file declares the *public* API which is intended
|
||||
* to be stable and consumed by external programs.
|
||||
*/
|
||||
|
||||
declare module 'xterm' {
|
||||
/**
|
||||
* An object containing start up options for the terminal.
|
||||
*/
|
||||
interface ITerminalOptions {
|
||||
/**
|
||||
* A data uri of the sound to use for the bell (needs bellStyle = 'sound').
|
||||
*/
|
||||
bellSound?: string;
|
||||
|
||||
/**
|
||||
* The type of the bell notification the terminal will use.
|
||||
*/
|
||||
bellStyle?: 'none' | 'visual' | 'sound' | 'both';
|
||||
|
||||
/**
|
||||
* The number of columns in the terminal.
|
||||
*/
|
||||
cols?: number;
|
||||
|
||||
/**
|
||||
* Whether the cursor blinks.
|
||||
*/
|
||||
cursorBlink?: boolean;
|
||||
|
||||
/**
|
||||
* The style of the cursor.
|
||||
*/
|
||||
cursorStyle?: 'block' | 'underline' | 'bar';
|
||||
|
||||
/**
|
||||
* Whether input should be disabled.
|
||||
*/
|
||||
disableStdin?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to enable the rendering of bold text.
|
||||
*/
|
||||
enableBold?: boolean;
|
||||
|
||||
/**
|
||||
* The font size used to render text.
|
||||
*/
|
||||
fontSize?: number;
|
||||
|
||||
/**
|
||||
* The font family used to render text.
|
||||
*/
|
||||
fontFamily?: string;
|
||||
|
||||
/**
|
||||
* The line height used to render text.
|
||||
*/
|
||||
lineHeight?: number;
|
||||
|
||||
/**
|
||||
* The number of rows in the terminal.
|
||||
*/
|
||||
rows?: number;
|
||||
|
||||
/**
|
||||
* The amount of scrollback in the terminal. Scrollback is the amount of rows
|
||||
* that are retained when lines are scrolled beyond the initial viewport.
|
||||
*/
|
||||
scrollback?: number;
|
||||
|
||||
/**
|
||||
* The size of tab stops in the terminal.
|
||||
*/
|
||||
tabStopWidth?: number;
|
||||
|
||||
/**
|
||||
* The color theme of the terminal.
|
||||
*/
|
||||
theme?: ITheme;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contains colors to theme the terminal with.
|
||||
*/
|
||||
interface ITheme {
|
||||
/** The default foreground color */
|
||||
foreground?: string,
|
||||
/** The default background color */
|
||||
background?: string,
|
||||
/** The cursor color */
|
||||
cursor?: string,
|
||||
/** The selection color (can be transparent) */
|
||||
selection?: string,
|
||||
/** The accent color of the cursor (used as the foreground color for a block cursor) */
|
||||
cursorAccent?: string,
|
||||
/** ANSI black (eg. `\x1b[30m`) */
|
||||
black?: string,
|
||||
/** ANSI red (eg. `\x1b[31m`) */
|
||||
red?: string,
|
||||
/** ANSI green (eg. `\x1b[32m`) */
|
||||
green?: string,
|
||||
/** ANSI yellow (eg. `\x1b[33m`) */
|
||||
yellow?: string,
|
||||
/** ANSI blue (eg. `\x1b[34m`) */
|
||||
blue?: string,
|
||||
/** ANSI magenta (eg. `\x1b[35m`) */
|
||||
magenta?: string,
|
||||
/** ANSI cyan (eg. `\x1b[36m`) */
|
||||
cyan?: string,
|
||||
/** ANSI white (eg. `\x1b[37m`) */
|
||||
white?: string,
|
||||
/** ANSI bright black (eg. `\x1b[1;30m`) */
|
||||
brightBlack?: string,
|
||||
/** ANSI bright red (eg. `\x1b[1;31m`) */
|
||||
brightRed?: string,
|
||||
/** ANSI bright green (eg. `\x1b[1;32m`) */
|
||||
brightGreen?: string,
|
||||
/** ANSI bright yellow (eg. `\x1b[1;33m`) */
|
||||
brightYellow?: string,
|
||||
/** ANSI bright blue (eg. `\x1b[1;34m`) */
|
||||
brightBlue?: string,
|
||||
/** ANSI bright magenta (eg. `\x1b[1;35m`) */
|
||||
brightMagenta?: string,
|
||||
/** ANSI bright cyan (eg. `\x1b[1;36m`) */
|
||||
brightCyan?: string,
|
||||
/** ANSI bright white (eg. `\x1b[1;37m`) */
|
||||
brightWhite?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* An object containing options for a link matcher.
|
||||
*/
|
||||
interface ILinkMatcherOptions {
|
||||
/**
|
||||
* The index of the link from the regex.match(text) call. This defaults to 0
|
||||
* (for regular expressions without capture groups).
|
||||
*/
|
||||
matchIndex?: number;
|
||||
|
||||
/**
|
||||
* A callback that validates an individual link, returning true if valid and
|
||||
* false if invalid.
|
||||
*/
|
||||
validationCallback?: (uri: string, callback: (isValid: boolean) => void) => void;
|
||||
|
||||
/**
|
||||
* A callback that fires when the mouse hovers over a link for a moment.
|
||||
*/
|
||||
tooltipCallback?: (event: MouseEvent, uri: string) => boolean | void;
|
||||
|
||||
/**
|
||||
* A callback that fires when the mouse leaves a link. Note that this can
|
||||
* happen even when tooltipCallback hasn't fired for the link yet.
|
||||
*/
|
||||
leaveCallback?: (event: MouseEvent, uri: string) => boolean | void;
|
||||
|
||||
/**
|
||||
* The priority of the link matcher, this defines the order in which the link
|
||||
* matcher is evaluated relative to others, from highest to lowest. The
|
||||
* default value is 0.
|
||||
*/
|
||||
priority?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* The class that represents an xterm.js terminal.
|
||||
*/
|
||||
export class Terminal {
|
||||
/**
|
||||
* The element containing the terminal.
|
||||
*/
|
||||
element: HTMLElement;
|
||||
|
||||
/**
|
||||
* The textarea that accepts input for the terminal.
|
||||
*/
|
||||
textarea: HTMLTextAreaElement;
|
||||
|
||||
/**
|
||||
* The number of rows in the terminal's viewport.
|
||||
*/
|
||||
rows: number;
|
||||
|
||||
/**
|
||||
* The number of columns in the terminal's viewport.
|
||||
*/
|
||||
cols: number;
|
||||
|
||||
/**
|
||||
* Creates a new `Terminal` object.
|
||||
*
|
||||
* @param options An object containing a set of options.
|
||||
*/
|
||||
constructor(options?: ITerminalOptions);
|
||||
|
||||
/**
|
||||
* Unfocus the terminal.
|
||||
*/
|
||||
blur(): void;
|
||||
|
||||
/**
|
||||
* Focus the terminal.
|
||||
*/
|
||||
focus(): void;
|
||||
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: 'blur' | 'focus' | 'lineFeed', listener: () => void): void;
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: 'data', listener: (data?: string) => void): void;
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: 'key', listener: (key?: string, event?: KeyboardEvent) => void): void;
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: 'keypress' | 'keydown', listener: (event?: KeyboardEvent) => void): void;
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: 'refresh', listener: (data?: { start: number, end: number }) => void): void;
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: 'resize', listener: (data?: { cols: number, rows: number }) => void): void;
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: 'scroll', listener: (ydisp?: number) => void): void;
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: 'title', listener: (title?: string) => void): void;
|
||||
/**
|
||||
* Registers an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
on(type: string, listener: (...args: any[]) => void): void;
|
||||
|
||||
/**
|
||||
* Deregisters an event listener.
|
||||
* @param type The type of the event.
|
||||
* @param listener The listener.
|
||||
*/
|
||||
off(type: 'blur' | 'focus' | 'lineFeed' | 'data' | 'key' | 'keypress' | 'keydown' | 'refresh' | 'resize' | 'scroll' | 'title' | string, listener: (...args: any[]) => void): void;
|
||||
|
||||
/**
|
||||
* Resizes the terminal.
|
||||
* @param x The number of columns to resize to.
|
||||
* @param y The number of rows to resize to.
|
||||
*/
|
||||
resize(columns: number, rows: number): void;
|
||||
|
||||
/**
|
||||
* Writes text to the terminal, followed by a break line character (\n).
|
||||
* @param data The text to write to the terminal.
|
||||
*/
|
||||
writeln(data: string): void;
|
||||
|
||||
/**
|
||||
* Opens the terminal within an element.
|
||||
* @param parent The element to create the terminal within.
|
||||
*/
|
||||
open(parent: HTMLElement): void;
|
||||
|
||||
/**
|
||||
* Attaches a custom key event handler which is run before keys are
|
||||
* processed, giving consumers of xterm.js ultimate control as to what keys
|
||||
* should be processed by the terminal and what keys should not.
|
||||
* @param customKeyEventHandler The custom KeyboardEvent handler to attach.
|
||||
* This is a function that takes a KeyboardEvent, allowing consumers to stop
|
||||
* propogation and/or prevent the default action. The function returns
|
||||
* whether the event should be processed by xterm.js.
|
||||
*/
|
||||
attachCustomKeyEventHandler(customKeyEventHandler: (event: KeyboardEvent) => boolean): void;
|
||||
|
||||
/**
|
||||
* (EXPERIMENTAL) Registers a link matcher, allowing custom link patterns to
|
||||
* be matched and handled.
|
||||
* @param regex The regular expression to search for, specifically this
|
||||
* searches the textContent of the rows. You will want to use \s to match a
|
||||
* space ' ' character for example.
|
||||
* @param handler The callback when the link is called.
|
||||
* @param options Options for the link matcher.
|
||||
* @return The ID of the new matcher, this can be used to deregister.
|
||||
*/
|
||||
registerLinkMatcher(regex: RegExp, handler: (event: MouseEvent, uri: string) => boolean | void, options?: ILinkMatcherOptions): number;
|
||||
|
||||
/**
|
||||
* (EXPERIMENTAL) Deregisters a link matcher if it has been registered.
|
||||
* @param matcherId The link matcher's ID (returned after register)
|
||||
*/
|
||||
deregisterLinkMatcher(matcherId: number): void;
|
||||
|
||||
/**
|
||||
* Gets whether the terminal has an active selection.
|
||||
*/
|
||||
hasSelection(): boolean;
|
||||
|
||||
/**
|
||||
* Gets the terminal's current selection, this is useful for implementing
|
||||
* copy behavior outside of xterm.js.
|
||||
*/
|
||||
getSelection(): string;
|
||||
|
||||
/**
|
||||
* Clears the current terminal selection.
|
||||
*/
|
||||
clearSelection(): void;
|
||||
|
||||
/**
|
||||
* Selects all text within the terminal.
|
||||
*/
|
||||
selectAll(): void;
|
||||
|
||||
// /**
|
||||
// * Find the next instance of the term, then scroll to and select it. If it
|
||||
// * doesn't exist, do nothing.
|
||||
// * @param term Tne search term.
|
||||
// * @return Whether a result was found.
|
||||
// */
|
||||
// findNext(term: string): boolean;
|
||||
|
||||
// /**
|
||||
// * Find the previous instance of the term, then scroll to and select it. If it
|
||||
// * doesn't exist, do nothing.
|
||||
// * @param term Tne search term.
|
||||
// * @return Whether a result was found.
|
||||
// */
|
||||
// findPrevious(term: string): boolean;
|
||||
|
||||
/**
|
||||
* Destroys the terminal and detaches it from the DOM.
|
||||
*/
|
||||
destroy(): void;
|
||||
|
||||
/**
|
||||
* Scroll the display of the terminal
|
||||
* @param amount The number of lines to scroll down (negative scroll up).
|
||||
*/
|
||||
scrollLines(amount: number): void;
|
||||
|
||||
/**
|
||||
* Scroll the display of the terminal by a number of pages.
|
||||
* @param pageCount The number of pages to scroll (negative scrolls up).
|
||||
*/
|
||||
scrollPages(pageCount: number): void;
|
||||
|
||||
/**
|
||||
* Scrolls the display of the terminal to the top.
|
||||
*/
|
||||
scrollToTop(): void;
|
||||
|
||||
/**
|
||||
* Scrolls the display of the terminal to the bottom.
|
||||
*/
|
||||
scrollToBottom(): void;
|
||||
|
||||
/**
|
||||
* Clear the entire buffer, making the prompt line the new first line.
|
||||
*/
|
||||
clear(): void;
|
||||
|
||||
/**
|
||||
* Writes text to the terminal.
|
||||
* @param data The text to write to the terminal.
|
||||
*/
|
||||
write(data: string): void;
|
||||
|
||||
/**
|
||||
* Retrieves an option's value from the terminal.
|
||||
* @param key The option key.
|
||||
*/
|
||||
getOption(key: 'bellSound' | 'bellStyle' | 'cursorStyle' | 'fontFamily' | 'termName'): string;
|
||||
/**
|
||||
* Retrieves an option's value from the terminal.
|
||||
* @param key The option key.
|
||||
*/
|
||||
getOption(key: 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'debug' | 'disableStdin' | 'enableBold' | 'popOnBell' | 'screenKeys' | 'useFlowControl' | 'visualBell'): boolean;
|
||||
/**
|
||||
* Retrieves an option's value from the terminal.
|
||||
* @param key The option key.
|
||||
*/
|
||||
getOption(key: 'colors'): string[];
|
||||
/**
|
||||
* Retrieves an option's value from the terminal.
|
||||
* @param key The option key.
|
||||
*/
|
||||
getOption(key: 'cols' | 'fontSize' | 'lineHeight' | 'rows' | 'tabStopWidth' | 'scrollback'): number;
|
||||
/**
|
||||
* Retrieves an option's value from the terminal.
|
||||
* @param key The option key.
|
||||
*/
|
||||
getOption(key: 'geometry'): [number, number];
|
||||
/**
|
||||
* Retrieves an option's value from the terminal.
|
||||
* @param key The option key.
|
||||
*/
|
||||
getOption(key: 'handler'): (data: string) => void;
|
||||
/**
|
||||
* Retrieves an option's value from the terminal.
|
||||
* @param key The option key.
|
||||
*/
|
||||
getOption(key: string): any;
|
||||
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'fontFamily' | 'termName' | 'bellSound', value: string): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'bellStyle', value: null | 'none' | 'visual' | 'sound' | 'both'): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'cursorStyle', value: null | 'block' | 'underline' | 'bar'): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'debug' | 'disableStdin' | 'enableBold' | 'popOnBell' | 'screenKeys' | 'useFlowControl' | 'visualBell', value: boolean): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'colors', value: string[]): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'cols' | 'fontSize' | 'lineHeight' | 'rows' | 'tabStopWidth' | 'scrollback', value: number): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'geometry', value: [number, number]): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'handler', value: (data: string) => void): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: 'theme', value: ITheme): void;
|
||||
/**
|
||||
* Sets an option on the terminal.
|
||||
* @param key The option key.
|
||||
* @param value The option value.
|
||||
*/
|
||||
setOption(key: string, value: any): void;
|
||||
|
||||
/**
|
||||
* Tells the renderer to refresh terminal content between two rows
|
||||
* (inclusive) at the next opportunity.
|
||||
* @param start The row to start from (between 0 and this.rows - 1).
|
||||
* @param end The row to end at (between start and this.rows - 1).
|
||||
*/
|
||||
refresh(start: number, end: number): void;
|
||||
|
||||
/**
|
||||
* Perform a full reset (RIS, aka '\x1bc').
|
||||
*/
|
||||
reset(): void
|
||||
|
||||
/**
|
||||
* Loads an addon, attaching it to the Terminal prototype and making it
|
||||
* available to all newly created Terminals.
|
||||
* @param addon The addon to load.
|
||||
*/
|
||||
static loadAddon(addon: 'attach' | 'fit' | 'fullscreen' | 'search' | 'terminado' | 'winptyCompat'): void;
|
||||
|
||||
|
||||
|
||||
// Modifications to official .d.ts below
|
||||
|
||||
buffer: {
|
||||
/**
|
||||
* The viewport position.
|
||||
*/
|
||||
ydisp: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* Emit an event on the terminal.
|
||||
*/
|
||||
emit(type: string, data: any): void;
|
||||
|
||||
/**
|
||||
* Find the next instance of the term, then scroll to and select it. If it
|
||||
* doesn't exist, do nothing.
|
||||
* @param term Tne search term.
|
||||
* @return Whether a result was found.
|
||||
*/
|
||||
findNext(term: string): boolean;
|
||||
|
||||
/**
|
||||
* Find the previous instance of the term, then scroll to and select it. If it
|
||||
* doesn't exist, do nothing.
|
||||
* @param term Tne search term.
|
||||
* @return Whether a result was found.
|
||||
*/
|
||||
findPrevious(term: string): boolean;
|
||||
|
||||
winptyCompatInit(): void;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user