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

Suppress save before starting notebook debug session. #7393

Merged
merged 2 commits into from
Sep 2, 2021

Conversation

roblourens
Copy link
Member

So we can debug untitled notebooks cleanly, and it's not needed for other unsaved notebooks anyway.
Fix #6898

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a [news entry](https://github.com/Microsoft/vscode-jupyter/tree/main/news) file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).

So we can debug untitled notebooks cleanly, and it's not needed for other unsaved notebooks anyway.
Fix #6898
@roblourens roblourens requested a review from a team as a code owner September 2, 2021 18:07
@roblourens roblourens self-assigned this Sep 2, 2021
@roblourens roblourens requested a review from DavidKutu September 2, 2021 18:08
@roblourens
Copy link
Member Author

I just pushed this option to vscode so it isn't in an Insiders build yet

@codecov-commenter
Copy link

codecov-commenter commented Sep 2, 2021

Codecov Report

Merging #7393 (01c6d61) into main (c7b94ff) will increase coverage by 0%.
The diff coverage is 0%.

@@          Coverage Diff          @@
##            main   #7393   +/-   ##
=====================================
  Coverage     64%     64%           
=====================================
  Files        361     361           
  Lines      22563   22563           
  Branches    3416    3415    -1     
=====================================
+ Hits       14499   14502    +3     
+ Misses      6866    6858    -8     
- Partials    1198    1203    +5     
Impacted Files Coverage Δ
src/client/debugger/jupyter/debuggingManager.ts 22% <0%> (ø)
src/client/common/cancellation.ts 72% <0%> (-4%) ⬇️
src/client/common/process/pythonDaemonFactory.ts 80% <0%> (-4%) ⬇️
...ience/kernel-launcher/localKernelSpecFinderBase.ts 79% <0%> (-3%) ⬇️
.../datascience/notebook/notebookControllerManager.ts 87% <0%> (-2%) ⬇️
...t/datascience/notebook/vscodeNotebookController.ts 79% <0%> (-2%) ⬇️
...lient/datascience/variablesView/notebookWatcher.ts 67% <0%> (-2%) ⬇️
...ient/datascience/kernel-launcher/kernelLauncher.ts 92% <0%> (-2%) ⬇️
src/client/common/process/baseDaemon.ts 51% <0%> (-1%) ⬇️
src/client/datascience/baseJupyterSession.ts 62% <0%> (-1%) ⬇️
... and 7 more

@roblourens roblourens merged commit f241f29 into main Sep 2, 2021
@roblourens roblourens deleted the roblou/suppressSave branch September 2, 2021 19:50
const opts = mode === KernelDebugMode.RunByLine ? { debugUI: { simple: true } } : undefined;
const opts: DebugSessionOptions | undefined =
mode === KernelDebugMode.RunByLine
? { debugUI: { simple: true }, suppressSaveBeforeStart: true }
Copy link
Contributor

Choose a reason for hiding this comment

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

@roblourens
Is this avaialble in VS Code 1.60 stable?

Copy link
Member Author

Choose a reason for hiding this comment

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

No

Copy link
Member Author

Choose a reason for hiding this comment

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

But it will be ignored and not cause an issue, if that's what you're wondering

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.

Run line by line in an untitled file prompts to save file
4 participants