add path to benchmark
This commit is contained in:
@@ -14,7 +14,10 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"common/*": ["../../../src/common/*"],
|
"common/*": ["../../../src/common/*"],
|
||||||
"browser/*": ["../../../src/browser/*"],
|
"browser/*": ["../../../src/browser/*"],
|
||||||
"SerializeAddon": ["../src/SerializeAddon"]
|
"SerializeAddon": ["../src/SerializeAddon"],
|
||||||
|
"xterm-addon-serialize": [
|
||||||
|
"../typings/xterm-addon-serialize.d.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["../**/*", "../../../typings/xterm.d.ts"],
|
"include": ["../**/*", "../../../typings/xterm.d.ts"],
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
import { DEFAULT_ANSI_COLORS } from 'browser/services/ThemeService';
|
import { DEFAULT_ANSI_COLORS } from 'browser/services/ThemeService';
|
||||||
import { IAttributeData, IColor } from 'common/Types';
|
import { IAttributeData, IColor } from 'common/Types';
|
||||||
import { IBuffer, IBufferCell, IBufferRange, ITerminalAddon, Terminal } from 'xterm';
|
import { IBuffer, IBufferCell, IBufferRange, ITerminalAddon, Terminal } from 'xterm';
|
||||||
|
import { SerializeAddon as ISerializeApi } from 'xterm-addon-serialize';
|
||||||
|
|
||||||
function constrain(value: number, low: number, high: number): number {
|
function constrain(value: number, low: number, high: number): number {
|
||||||
return Math.max(low, Math.min(value, high));
|
return Math.max(low, Math.min(value, high));
|
||||||
@@ -411,7 +412,7 @@ class StringSerializeHandler extends BaseSerializeHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SerializeAddon implements ITerminalAddon {
|
export class SerializeAddon implements ITerminalAddon , ISerializeApi {
|
||||||
private _terminal: Terminal | undefined;
|
private _terminal: Terminal | undefined;
|
||||||
|
|
||||||
public activate(terminal: Terminal): void {
|
public activate(terminal: Terminal): void {
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
],
|
],
|
||||||
"browser/*": [
|
"browser/*": [
|
||||||
"../../../src/browser/*"
|
"../../../src/browser/*"
|
||||||
|
],
|
||||||
|
"xterm-addon-serialize": [
|
||||||
|
"../typings/xterm-addon-serialize.d.ts"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|||||||
@@ -11,7 +11,10 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"common/*": ["../../../src/common/*"],
|
"common/*": ["../../../src/common/*"],
|
||||||
"browser/*": ["../../../src/browser/*"],
|
"browser/*": ["../../../src/browser/*"],
|
||||||
"UnicodeGraphemeProvider": ["../src/UnicodeGraphemeProvider"]
|
"UnicodeGraphemeProvider": ["../src/UnicodeGraphemeProvider"],
|
||||||
|
"xterm-addon-unicode-graphemes": [
|
||||||
|
"../typings/xterm-addon-unicode-graphemes.d.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["../**/*", "../../../typings/xterm.d.ts"],
|
"include": ["../**/*", "../../../typings/xterm.d.ts"],
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
import { Terminal, ITerminalAddon, IUnicodeHandling } from 'xterm';
|
import { Terminal, ITerminalAddon, IUnicodeHandling } from 'xterm';
|
||||||
import { UnicodeGraphemeProvider } from './UnicodeGraphemeProvider';
|
import { UnicodeGraphemeProvider } from './UnicodeGraphemeProvider';
|
||||||
|
import { UnicodeGraphemesAddon as PublicApi } from 'xterm-addon-unicode-graphemes';
|
||||||
|
|
||||||
|
export class UnicodeGraphemesAddon implements ITerminalAddon , PublicApi {
|
||||||
export class UnicodeGraphemesAddon implements ITerminalAddon {
|
|
||||||
private _provider15Graphemes?: UnicodeGraphemeProvider;
|
private _provider15Graphemes?: UnicodeGraphemeProvider;
|
||||||
private _provider15?: UnicodeGraphemeProvider;
|
private _provider15?: UnicodeGraphemeProvider;
|
||||||
private _unicode?: IUnicodeHandling;
|
private _unicode?: IUnicodeHandling;
|
||||||
|
|||||||
@@ -15,6 +15,9 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"common/*": [
|
"common/*": [
|
||||||
"../../../src/common/*"
|
"../../../src/common/*"
|
||||||
|
],
|
||||||
|
"xterm-addon-unicode-graphemes": [
|
||||||
|
"../typings/xterm-addon-unicode-graphemes.d.ts"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"types": [
|
"types": [
|
||||||
|
|||||||
Reference in New Issue
Block a user