addWorkspaceFolder
/ removeWorkspaceFolder
are not effective API
#37301
Labels
api
*duplicate
Issue identified as a duplicate of another issue(s)
feature-request
Request for new features or functionality
under-discussion
Issue is under discussion for relevance, priority, approach
workbench-multiroot
Multi-root (multiple folders) issues
Milestone
Testing #37133
fyi @jrieken .
uri
,name
andindex
.export let workspaceFolders: WorkspaceFolder[] | undefined;
IMHO, the editing API seems out of place:
removeWorkspaceFolder
takes as argument a singleWorkspaceFolder
; why a single one ?addWorkspaceFolder
also takes in a singleWorkspaceFolder
; why ? It also ignores theindex
property; how to add something at the beginning of the array ?e.g. of difficulty:
i
with another folder. i.e.workspaceFolders[i] = newWorkspaceFolder
:removeWorkspaceFolder
N timesaddWorkspaceFolder
N timesIMHO a much simpler API would be a
setWorkspaceFolders(newWorkspaceFolders: WorkspaceFolder[])
The text was updated successfully, but these errors were encountered: