Skip to content

Commit a3d3838

Browse files
committed
Fix new compression mode on file trees
1 parent 8357946 commit a3d3838

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: arduino-ide-extension/src/browser/theia/core/common-frontend-contribution.ts

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export class CommonFrontendContribution extends TheiaCommonFrontendContribution
1919
CommonCommands.CLOSE_ALL_TABS,
2020
CommonCommands.COLLAPSE_PANEL,
2121
CommonCommands.TOGGLE_MAXIMIZED,
22+
CommonCommands.PIN_TAB,
23+
CommonCommands.UNPIN_TAB,
2224
]) {
2325
commandRegistry.unregisterCommand(command);
2426
}

Diff for: arduino-ide-extension/src/browser/widgets/sketchbook/sketchbook-tree-container.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { interfaces, Container } from 'inversify';
22
import {
3+
CompressionToggle,
34
createTreeContainer,
45
Tree,
6+
TreeCompressionService,
57
TreeImpl,
68
TreeModel,
79
TreeModelImpl,
@@ -27,6 +29,9 @@ export function createSketchbookTreeContainer(
2729
child.bind(SketchbookTreeWidget).toSelf();
2830
child.rebind(TreeWidget).toService(SketchbookTreeWidget);
2931

32+
child.bind(CompressionToggle).toConstantValue({ compress: false });
33+
child.bind(TreeCompressionService).toSelf().inSingletonScope();
34+
3035
return child;
3136
}
3237

0 commit comments

Comments
 (0)