-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix when clauses for new interactive cell shortcuts #13273
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -446,7 +446,7 @@ | |
| "downloading.file.progress": "{0}{1} of {2} KB ({3}%)", | ||
| "DataScience.jupyterDataRateExceeded": "Cannot view variable because data rate exceeded. Please restart your server with a higher data rate limit. For example, --NotebookApp.iopub_data_rate_limit=10000000000.0", | ||
| "DataScience.addCellBelowCommandTitle": "Add cell", | ||
| "DataScience.debugCellCommandTitle": "Debug cell", | ||
| "DataScience.debugCellCommandTitle": "Debug Cell", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should all of the 'cell' commands have 'Cell' instead of 'cell'? There's others. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, we have
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rest of them don't even show up, I think we decided at some point last year not to show those codelenses. Can we remove them altogether?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops just saw Rich's followup above. |
||
| "DataScience.debugStepOverCommandTitle": "Step over", | ||
| "DataScience.debugContinueCommandTitle": "Continue", | ||
| "DataScience.debugStopCommandTitle": "Stop", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -787,7 +787,7 @@ export namespace DataScience { | |
| 'Cannot view variable because data rate exceeded. Please restart your server with a higher data rate limit. For example, --NotebookApp.iopub_data_rate_limit=10000000000.0' | ||
| ); | ||
| export const addCellBelowCommandTitle = localize('DataScience.addCellBelowCommandTitle', 'Add cell'); | ||
| export const debugCellCommandTitle = localize('DataScience.debugCellCommandTitle', 'Debug cell'); | ||
| export const debugCellCommandTitle = localize('DataScience.debugCellCommandTitle', 'Debug Cell'); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like the command above should be changed to match up.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the Add Cell codelens even supposed to be showing up anymore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess you could check the telemetry. It's still a command though. |
||
| export const debugStepOverCommandTitle = localize('DataScience.debugStepOverCommandTitle', 'Step over'); | ||
| export const debugContinueCommandTitle = localize('DataScience.debugContinueCommandTitle', 'Continue'); | ||
| export const debugStopCommandTitle = localize('DataScience.debugStopCommandTitle', 'Stop'); | ||
|
|
||
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.
Don't you also need
editorFocus && editorLangId == pythonSo that we display these commands only for python files?
Uh oh!
There was an error while loading. Please reload this page.
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.
Yeah I saw that that's what you recommended in #12529, but it turns out that:
editorFocusdoesn't work at all for some reason. It completely hides those commands. Possibly codelenses interfering? I'm not totally sure what's going on there. But it doesn't do what we want. This was why the commands weren't showing up for @greazer during demo earlier today.python.datascience.hascodecellscontext key is equivalent toeditorLangId == python, because we only sethascodecellsifactiveEditor.document.languageId === PYTHON_LANGUAGE:vscode-python/src/client/datascience/datascience.ts
Lines 85 to 88 in 30af20a