showTextDocument
is not respecting preview: true
if user has enablePreview
disabled
#149088
Labels
api
insiders-released
Patch has been released in VS Code Insiders
workbench-editors
Managing of editor widgets in workbench window
Milestone
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
workbench.editor.enablePreview
tofalse
{ preview: true }
option.showTextDocument
api, and again a new tab is opened, non preview.Either this is a bug, or the manual is incorrect:
I would understand (but be a bit sad) if the documentation is wrong, like that maybe it should say that this flag is only working when
workbench.editor.enablePreview
is true. I think the preferred behavior would be that the first time this is called, and no preview tab exists, a new one is allocated, and all the followingshowTextDocument
calls with{ preview: true }
will use that new preview tab regardless of the user setting.The text was updated successfully, but these errors were encountered: