fix: simplify code navigation and support Gazebo XML files

Remove redundant code-view cancellation and align button labels. Restore module scrollbar thickness while preserving workspace colors, and support config, SDF and world text files locally and remotely.
This commit is contained in:
2026-10-19 17:29:02 +09:00
parent b7870cffa2
commit 00a83ce4ac
12 changed files with 126 additions and 46 deletions
+5 -2
View File
@@ -47,7 +47,7 @@ test('theme synchronizes across windows without writing runtime settings', () =>
assert.equal(api.useStudioTheme(), 'dark')
})
test('module content horizontal scrollbar uses the shared workspace scrollbar style', () => {
test('module content scrollbar uses workspace colors without thinner scrollbar dimensions', () => {
const source = ts.createSourceFile('ModuleListView.tsx', fs.readFileSync(path.join(root, 'ModuleListView.tsx'), 'utf8'), ts.ScriptTarget.Latest, true, ts.ScriptKind.TSX)
const scrollClasses = []
function visit(node) {
@@ -59,5 +59,8 @@ test('module content horizontal scrollbar uses the shared workspace scrollbar st
}
visit(source)
assert.ok(scrollClasses.length > 0)
for (const classes of scrollClasses) assert.ok(classes.includes('thin-x-scrollbar'))
for (const classes of scrollClasses) {
assert.ok(classes.includes('module-content-scrollbar'))
assert.ok(!classes.includes('thin-x-scrollbar'))
}
})