Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register editor to location stack when 'onCurrentEditorChanged' #4423

Merged
merged 1 commit into from
Feb 26, 2019

Conversation

vince-fugnitto
Copy link
Member

Fixes #4388

  • Previously, it wasn't clear when an editor would be registered to the navigation location stack.
    This change adds the missing registration of an editor when onCurrentEditorChanged. Results in the quick file open are now more consistently added to the stack.

Signed-off-by: Vincent Fugnitto [email protected]

…nged'

Fixes #4388

- Previously, it wasn't clear when an editor would be registered to the `navigation location stack`.
This change adds the missing registration of an editor when `onCurrentEditorChanged`. Results in the
quick file open are now more consistently added to the stack.

Signed-off-by: Vincent Fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto added bug bugs found in the application file search issues related to the file search labels Feb 26, 2019
@elaihau
Copy link
Contributor

elaihau commented Feb 26, 2019

Tested on gitpod. Looks like i would have to mouse-click to activate the preview editor before seeing the file from the "recently opened". is that what we want ?

peek 2019-02-26 06-57

@vince-fugnitto
Copy link
Member Author

@elaihau just to clarify the change ensures that when an active editor is first opened, then it'll be registered in the navigation location stack without the need for the cursor to move or changes to be made. The issue is that the preview editor does not seem to send a onCurrentEditorChange event.

Copy link
Contributor

@elaihau elaihau left a comment

Choose a reason for hiding this comment

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

looks good to me.

Copy link
Contributor

@svenefftinge svenefftinge left a comment

Choose a reason for hiding this comment

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

Cool, thanks!

@vince-fugnitto vince-fugnitto merged commit a078351 into master Feb 26, 2019
@vince-fugnitto vince-fugnitto deleted the vf/location-stack branch February 26, 2019 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application file search issues related to the file search
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants