瀏覽代碼

Removes synthetic imports for webviews

main
Eric Amodio 2 年之前
父節點
當前提交
87dc30412e
共有 3 個文件被更改,包括 4 次插入2 次删除
  1. +3
    -1
      src/webviews/apps/shared/appBase.ts
  2. +1
    -0
      src/webviews/apps/shared/events.ts
  3. +0
    -1
      src/webviews/apps/tsconfig.json

+ 3
- 1
src/webviews/apps/shared/appBase.ts 查看文件

@ -22,7 +22,7 @@ function nextIpcId() {
return `webview:${ipcSequence}`;
}
export abstract class App<State extends object> {
export abstract class App<State extends object = any> {
private readonly _api: VsCodeApi;
protected state: State;
@ -78,6 +78,8 @@ export abstract class App {
protected setState(state: State) {
this.state = state;
if (state == null) return;
this._api.setState(state);
}

+ 1
- 0
src/webviews/apps/shared/events.ts 查看文件

@ -39,6 +39,7 @@ export class Emitter {
}
},
};
if (Array.isArray(disposables)) {
disposables.push(result);
}

+ 0
- 1
src/webviews/apps/tsconfig.json 查看文件

@ -1,7 +1,6 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"lib": ["dom", "dom.iterable", "es2020"],
"outDir": "../../"
},

Loading…
取消
儲存