mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
getting there...
This commit is contained in:
parent
047cc03002
commit
f22bc26355
4 changed files with 14 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import React from "react";
|
||||
// import React from "react";
|
||||
import { useSidebarState, useThreadsState } from '../util/contextForServices.js';
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { Disposable } from '../../../../base/common/lifecycle.js';
|
||||
import { registerSingleton, InstantiationType } from '../../../../platform/instantiation/common/extensions';
|
||||
import { createDecorator } from '../../../../platform/instantiation/common/instantiation';
|
||||
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry';
|
||||
import { registerSingleton, InstantiationType } from '../../../../platform/instantiation/common/extensions.js';
|
||||
import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
|
||||
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.js';
|
||||
|
||||
import { posthog } from './react/out/util/posthog.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ import { IVoidConfigStateService } from './registerConfig.js';
|
|||
import { IFileService } from '../../../../platform/files/common/files.js';
|
||||
// import { IClipboardService } from '../../../../platform/clipboard/common/clipboardService.js';
|
||||
|
||||
// const mountFn = (...params: any) => { }
|
||||
|
||||
|
||||
// compare against search.contribution.ts and https://app.greptile.com/chat/w1nsmt3lauwzculipycpn?repo=github%3Amain%3Amicrosoft%2Fvscode
|
||||
// and debug.contribution.ts, scm.contribution.ts (source control)
|
||||
|
|
@ -93,18 +91,18 @@ class VoidSidebarViewPane extends ViewPane {
|
|||
protected override renderBody(parent: HTMLElement): void {
|
||||
super.renderBody(parent);
|
||||
|
||||
// <div className={`flex flex-col h-screen w-full`}>
|
||||
|
||||
const { root } = dom.h('div@root')
|
||||
dom.append(parent, root);
|
||||
|
||||
// gets set immediately
|
||||
this.instantiationService.invokeFunction(accessor => {
|
||||
mountFn(root, {
|
||||
const services: ReactServicesType = {
|
||||
configStateService: accessor.get(IVoidConfigStateService),
|
||||
sidebarStateService: accessor.get(IVoidSidebarStateService),
|
||||
threadHistoryService: accessor.get(IThreadHistoryService),
|
||||
});
|
||||
threadsStateService: accessor.get(IThreadHistoryService),
|
||||
fileService: accessor.get(IFileService),
|
||||
}
|
||||
mountFn(root, services);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
// // register Settings
|
||||
// register Settings
|
||||
import './registerConfig.js'
|
||||
|
||||
// // register Sidebar chat
|
||||
// register Sidebar chat
|
||||
import './registerSidebar.js'
|
||||
|
||||
// // register Posthog metrics
|
||||
// register Posthog metrics
|
||||
import './registerMetrics.js'
|
||||
|
||||
// // register Thread History
|
||||
// register Thread History
|
||||
import './registerThreads.js'
|
||||
|
||||
// // register inline diffs
|
||||
// register inline diffs
|
||||
import './registerInlineDiffs.js'
|
||||
|
|
|
|||
Loading…
Reference in a new issue