Testing #145585
With a dirty editor and autosave off, running this code will resolve the close and print the result while the editor is still open and the user is prompted for whether to save it. It might make sense to only resolve the promise after that, and perhaps return a boolean for whether the editor was closed.
const result = await vscode.window.tabGroups.close(active);
console.log('hello result', { result });
Testing #145585
With a dirty editor and autosave off, running this code will resolve the
closeand print the result while the editor is still open and the user is prompted for whether to save it. It might make sense to only resolve the promise after that, and perhaps return a boolean for whether the editor was closed.