I am onto writing a VSCode extension and need to create files / remove files based in a folder / subfolder selected by the user.
Is there a way to find selected folder from the explorer tree through visual studio code api? One can track the opened file through active text editor or onDidOpenTextDocument()
. I am interested in finding if user has selected a folder and if so the path to selected folder.
For example: workspace.rootPath
provides a root of the opened project. Similarly, how do I identify which subfolder is selected by the user (if any).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…