Skip to content

fix #102289#102660

Merged
mjbvz merged 2 commits intomicrosoft:masterfrom
zcfan:fix#102289
Jul 22, 2020
Merged

fix #102289#102660
mjbvz merged 2 commits intomicrosoft:masterfrom
zcfan:fix#102289

Conversation

@zcfan
Copy link
Contributor

@zcfan zcfan commented Jul 16, 2020

This PR fixes #102289 by open with the editor if it's the only one available.

To test it in the current master branch, disable the builtin "vscode-notebook-tests" extension and create a new file. It should open the new file without asking for picking editor.

Enable the "vscode-notebook-tests" extension will add two candidates to the editor list, when create new file the picker should show up again.

@mjbvz mjbvz requested a review from rebornix July 16, 2020 22:27
}

const overrideToUse = typeof id === 'string' && allEditorOverrides.find(([_, entry]) => entry.id === id);
let overrideToUse;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rebornix Would we ever want to show the reopen with prompt if there is only one override?

@mjbvz mjbvz added this to the July 2020 milestone Jul 22, 2020
@mjbvz mjbvz merged commit 14f2123 into microsoft:master Jul 22, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Jul 22, 2020

Merging this for insiders. Will see if it causes any issues for other flows, such as reopen with

@rebornix
Copy link
Member

@mjbvz +1 for this change, showing picker when there is only one view type is weird IMHO. Great work!

@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Annoying Editor Selector when New File from File menu

3 participants