How do I get the currently opened folder? #13604
-
Hi, I created a FrontendApplicationContribution, whose onStart() method get's called properly. I guess it's trivial then, but I am overlooking it... Thanks in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @dagoston93, even just a folder is still a workspace. Therefore, using |
Beta Was this translation helpful? Give feedback.
Hey @dagoston93,
even just a folder is still a workspace. Therefore, using
WorkspaceService
is still correct. You should be able to use theroots
property to get all currently open folders (even if it is just one).