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

Enable hot exit for saved files #469

Merged
merged 6 commits into from
Jan 11, 2018
Merged

Enable hot exit for saved files #469

merged 6 commits into from
Jan 11, 2018

Conversation

MattIrv
Copy link
Contributor

@MattIrv MattIrv commented Jan 11, 2018

This will fix #463 by changing how we serialize and deserialize editor windows to always serialize VS Code's version of the editor, then convert it to a SqlInput editor upon deserialization if needed.

This is still a work in progress and needs some testing, but opening the PR now in case others are interested in looking at the code change.

@MattIrv MattIrv requested a review from kburtram January 11, 2018 02:00
@@ -267,7 +267,7 @@ configurationRegistry.registerConfiguration({
'files.hotExit': {
'type': 'string',
'enum': [HotExitConfiguration.OFF, HotExitConfiguration.ON_EXIT, HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE],
'default': HotExitConfiguration.ON_EXIT,
'default': HotExitConfiguration.OFF,
Copy link
Member

Choose a reason for hiding this comment

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

I just merged your change to force off HotExit. you probably should merge that change and set it to read from the config and default to OFF.

Copy link
Member

@kburtram kburtram left a comment

Choose a reason for hiding this comment

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

Let's test this some more tomorrow and decide if this is something we can take for Jan release.

@MattIrv MattIrv merged commit 6d3995a into master Jan 11, 2018
@MattIrv MattIrv deleted the fix/hotExitFiles branch January 11, 2018 22:29
@mrlife
Copy link

mrlife commented Jan 12, 2018

In 0.25.3, it looks like HotExit is disabled (receive save dialog when exiting and files are gone after reopening). Is this the intended behavior for now?

@MattIrv
Copy link
Contributor Author

MattIrv commented Jan 12, 2018

@mrlife Hot exit is disabled by default in this build, but can be enabled in settings (ctrl + ,) by changing "files.hotExit" to "onExit" or "onExitAndWindowClose". We'll make sure to document these steps for the upcoming release. If that doesn't work for you, please let me know. Thanks!

aleklj pushed a commit to aleklj/azuredatastudio that referenced this pull request Oct 28, 2019
* fix file browser service bug

* modify filebrowser service

* change filebrowser contract

* fix contract

* fix file browser add/expand event contracts

* remove commented code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Keep saved query tabs after restarting
3 participants