Parcourir la source

Simplifies vscode component registration

main
Eric Amodio il y a 2 ans
Parent
révision
47c302691f
2 fichiers modifiés avec 2 ajouts et 12 suppressions
  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 Voir le fichier

@ -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 Voir le fichier

@ -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();
}

Chargement…
Annuler
Enregistrer