-
Notifications
You must be signed in to change notification settings - Fork 74
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
Save file before starting debug session #525
Conversation
@ckipp01 how is this handled in the vim DAP extension? |
ServerCommands.DebugAdapterStart, | ||
...parameters | ||
return commands | ||
.executeCommand("workbench.action.files.save") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should do this unconditionally, or prompt the user and offer to save.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it seems that vscode does it automatically anyways when the debug session is run, which means that even with prompting the user the end result will be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 alright then
I actually haven't checked before this, but it seems that if you have unsaved changes in the buffer, it just runs with the last known state. However, that may be quite tricky to change there. Mainly because |
I think this is perfectly fine. The main issue would be if it automatically saved the buffers like VS Code, but otherwise if it's totally in the users control then I then we shouldn't change anything. |
…rn/prettier-2.8.1 chore(deps-dev): bump prettier from 2.8.0 to 2.8.1
Fixes #524