ivangsa
ivangsa

Reputation: 147

Programatically switch to an ActivityBar from VSCode Extension

On my vscode extension, when running a command, I would like to switch to my contributed activity bar

It's there a vscode api for perfoming this?

Thanks in advance

Upvotes: 1

Views: 191

Answers (1)

rioV8
rioV8

Reputation: 28838

when you create a View VSC creates for you a command that gives the View the focus.

Execute this command: viewName.focus

Upvotes: 2

Related Questions