Ver código fonte

Simplifies vscode component registration

main
Eric Amodio 2 anos atrás
pai
commit
47c302691f
2 arquivos alterados com 2 adições e 12 exclusões
  1. +1
    -5
      src/webviews/apps/home/home.ts
  2. +1
    -7
      src/webviews/apps/plus/timeline/timeline.ts

+ 1
- 5
src/webviews/apps/home/home.ts Ver arquivo

@ -17,11 +17,7 @@ export class HomeApp extends App {
}
protected override onInitialize() {
provideVSCodeDesignSystem().register({
register: function (container: any, context: any) {
vsCodeButton().register(container, context);
},
});
provideVSCodeDesignSystem().register(vsCodeButton());
this.$slots = [
document.getElementById('slot1') as HTMLDivElement,

+ 1
- 7
src/webviews/apps/plus/timeline/timeline.ts Ver arquivo

@ -22,13 +22,7 @@ export class TimelineApp extends App {
}
protected override onInitialize() {
provideVSCodeDesignSystem().register({
register: function (container: any, context: any) {
vsCodeButton().register(container, context);
vsCodeDropdown().register(container, context);
vsCodeOption().register(container, context);
},
});
provideVSCodeDesignSystem().register(vsCodeButton(), vsCodeDropdown(), vsCodeOption());
this.updateState();
}

Carregando…
Cancelar
Salvar