Просмотр исходного кода

tui: add logging when creating project instances to help users debug startup issues

Dax Raad 10 месяцев назад
Родитель
Сommit
c9adbc7c21
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      packages/opencode/src/project/instance.ts

+ 1 - 0
packages/opencode/src/project/instance.ts

@@ -16,6 +16,7 @@ export const Instance = {
   async provide<R>(input: { directory: string; init?: () => Promise<any>; fn: () => R }): Promise<R> {
     let existing = cache.get(input.directory)
     if (!existing) {
+      Log.Default.info("creating instance", { directory: input.directory })
       existing = iife(async () => {
         const project = await Project.fromDirectory(input.directory)
         const ctx = {