Pārlūkot izejas kodu

Simplifies vscode component registration

main
Eric Amodio pirms 2 gadiem
vecāks
revīzija
47c302691f
2 mainītis faili ar 2 papildinājumiem un 12 dzēšanām
  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 Parādīt failu

@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt