diff --git a/addons/addon-progress/webpack.config.js b/addons/addon-progress/webpack.config.js index 5ee2531dab..1bf29bfd2c 100644 --- a/addons/addon-progress/webpack.config.js +++ b/addons/addon-progress/webpack.config.js @@ -27,7 +27,7 @@ module.exports = { alias: { common: path.resolve('../../out/common'), browser: path.resolve('../../out/browser'), - vs: path.resolve('../../out/vs'), + vs: path.resolve('../../out/vs') } }, output: { diff --git a/demo/client.ts b/demo/client.ts index 6a87b8f5fc..2967af2414 100644 --- a/demo/client.ts +++ b/demo/client.ts @@ -281,7 +281,6 @@ function createTerminal(): void { addons.serialize.instance = new SerializeAddon(); addons.fit.instance = new FitAddon(); addons.image.instance = new ImageAddon(); - //addons.progress.instance = new ProgressAddon(Terminal as unknown as IXtermSharedImports); addons.progress.instance = new ProgressAddon(sharedExports); addons.unicodeGraphemes.instance = new UnicodeGraphemesAddon(); addons.clipboard.instance = new ClipboardAddon(); diff --git a/typings/xterm-headless.d.ts b/typings/xterm-headless.d.ts index e696713e21..2c7b8b88bf 100644 --- a/typings/xterm-headless.d.ts +++ b/typings/xterm-headless.d.ts @@ -1363,26 +1363,26 @@ declare module '@xterm/headless' { * EXPERIMENTAL: * Module exposure of certain building blocks to be used at runtime in addons. */ - export interface ISharedExports { - readonly DisposableStore: new() => IDisposableStore; - readonly Emitter: new() => IEmitter; - readonly toDisposable: (fn: () => void) => IDisposable; - } - - export const sharedExports: ISharedExports; - - // FIXME: @Tyriar - plz have a look at the following interfaces and - // to what degree those should be exposed or get stripped down - export interface IEmitter extends IDisposable { - event: IEvent; - fire(event: T): void; - hasListeners(): boolean; - } - export interface IDisposableStore extends IDisposable { - isDisposed: boolean; - clear(): void; - add(o: T): T; - delete(o: T): void; - deleteAndLeak(o: T): void; - } + export interface ISharedExports { + readonly DisposableStore: new() => IDisposableStore; + readonly Emitter: new() => IEmitter; + readonly toDisposable: (fn: () => void) => IDisposable; + } + + export const sharedExports: ISharedExports; + + // FIXME: @Tyriar - plz have a look at the following interfaces and + // to what degree those should be exposed or get stripped down + export interface IEmitter extends IDisposable { + event: IEvent; + fire(event: T): void; + hasListeners(): boolean; + } + export interface IDisposableStore extends IDisposable { + isDisposed: boolean; + clear(): void; + add(o: T): T; + delete(o: T): void; + deleteAndLeak(o: T): void; + } }