Any way to implement enablement for vscode TreeItems?

Hello, I’m trying to display certain TreeItems as disabled (‘greyed out’) in a vscode plugin.

In vscode it’s done by using enablement predicate on a linked command (Show TreeItem as disabled when command enablement is false by benibenj · Pull Request #157516 · microsoft/vscode · GitHub). It doesn’t seem to work in Theia, is there any way around?

It doesn’t seem to work in Theia, is there any way around?

@vnfedotov thank you for the discussion, I don’t believe there is a way around, if interested you can contribute a change to the framework to support the use-case similarly to what was done for vscode.

Thanks for a quick reply, I’ll look into it when I get a chance.

1 Like