fix project list showing projects of double clicked files (#2441)

* make sure there is at least one kcl file in the dir to show in list

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* open the correct file not assuming main.kcl

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add file path tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* update settings paths

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* new images

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-05-21 18:14:49 -07:00
committed by GitHub
parent 63159c1cb8
commit ec7b733a0d
29 changed files with 238 additions and 59 deletions

View File

@ -24,6 +24,7 @@ const projectWellFormed = {
},
kcl_file_count: 1,
directory_count: 0,
default_file: '/some/path/Simple Box/main.kcl',
} satisfies Project
describe('ProjectSidebarMenu tests', () => {