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

Change number of icons in notebook toolbar #4747

Merged
merged 4 commits into from
Feb 10, 2021
Merged

Change number of icons in notebook toolbar #4747

merged 4 commits into from
Feb 10, 2021

Conversation

rchiodo
Copy link
Contributor

@rchiodo rchiodo commented Feb 10, 2021

For #4730

We'll now have:

  • REstart/Interrupt depending upon the state of the kernel
  • Variable Explorer
  • Export As

@rchiodo rchiodo requested a review from a team as a code owner February 10, 2021 22:13
package.json Outdated
"group": "navigation@4",
"when": "notebookViewType == 'jupyter-notebook'"
"group": "navigation@1",
"when": "notebookViewType == 'jupyter-notebook' && jupyter.notebookeditor.canInterruptNotebookKernel"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe jupyter.isnotebooktrusted on interrupt / restart as well? Obviously it should be covered by canrestart or canInterrupt, but provides an extra degree of safety just in case we have a bug with those other contexts so that we don't accidentally enable something when not trusted. Surprised we didn't have the trusted check already.

Copy link
Member

Choose a reason for hiding this comment

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

Actually they already have the enablements in commands sections? That's odd, which version wins if they are different? I'd assume the more specific one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The more specific one

I didn't want to disable the command in the command palette

Copy link
Member

Choose a reason for hiding this comment

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

So is runallcellsabove enabled when not trusted then? Looks like our more specific version here for the editor doesn't have the trusted check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's there but disabled.

@codecov-io
Copy link

codecov-io commented Feb 10, 2021

Codecov Report

Merging #4747 (94d4ae1) into main (743b19d) will increase coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main   #4747   +/-   ##
=====================================
  Coverage     76%     76%           
=====================================
  Files        406     406           
  Lines      26736   26741    +5     
  Branches    3859    3860    +1     
=====================================
+ Hits       20578   20582    +4     
- Misses      4566    4574    +8     
+ Partials    1592    1585    -7     
Impacted Files Coverage Δ
...t/datascience/notebook/helpers/executionHelpers.ts 68% <0%> (-8%) ⬇️
...t/common/application/webviewPanels/webviewPanel.ts 72% <0%> (-8%) ⬇️
...nt/datascience/notebook/helpers/notebookUpdater.ts 94% <0%> (-6%) ⬇️
...lient/datascience/jupyter/kernels/cellExecution.ts 78% <0%> (-4%) ⬇️
...rc/client/common/process/pythonExecutionFactory.ts 84% <0%> (-4%) ⬇️
src/client/datascience/jupyter/notebookStarter.ts 77% <0%> (-2%) ⬇️
...ient/datascience/raw-kernel/rawNotebookProvider.ts 90% <0%> (-2%) ⬇️
src/client/datascience/jupyter/jupyterNotebook.ts 77% <0%> (-2%) ⬇️
...datascience/interactive-common/notebookProvider.ts 86% <0%> (-2%) ⬇️
.../datascience/insidersNativeNotebookSurveyBanner.ts 97% <0%> (+<1%) ⬆️
... and 12 more

@rchiodo rchiodo merged commit 7276e65 into main Feb 10, 2021
@rchiodo rchiodo deleted the rchiodo/icons branch February 10, 2021 23:59
rchiodo added a commit that referenced this pull request Feb 11, 2021
* Fix icons

* Have trust command show up and nothing else if untrusted

* Add trust check to all commands

* Update based on discussion
rchiodo added a commit that referenced this pull request Feb 11, 2021
* Change number of icons in notebook toolbar (#4747)

* Fix icons

* Have trust command show up and nothing else if untrusted

* Add trust check to all commands

* Update based on discussion

* Update change log
DonJayamanne pushed a commit that referenced this pull request Feb 11, 2021
* Fix icons

* Have trust command show up and nothing else if untrusted

* Add trust check to all commands

* Update based on discussion
rchiodo added a commit that referenced this pull request Feb 18, 2021
* Change number of icons in notebook toolbar (#4747)

* Fix icons

* Have trust command show up and nothing else if untrusted

* Add trust check to all commands

* Update based on discussion

* Update change log
rchiodo added a commit that referenced this pull request Feb 18, 2021
* PORT Variable view icon to release branch (#4748)

* update changelog (#4752)

* Cherry pick change for icon overflow (#4753)

* Change number of icons in notebook toolbar (#4747)

* Fix icons

* Have trust command show up and nothing else if untrusted

* Add trust check to all commands

* Update based on discussion

* Update change log

* PORT - variable context (#4770)

* Add new editor context for just if native notebook is active (#4762)

* update news

Co-authored-by: Ian Huff <ianhuff@LICHYOGAIOT.northamerica.corp.microsoft.com>

* Port control enter fix to release (#4774)

* Fix ctrl+enter and alt+enter by removing the redundant command. (#4769)

* Fix ctrl+enter and alt+enter by removing the redundant command.

* Code review feedback

* Update changelog

* port .NET fix to release (#4776)

* Fix .NET interactive to always use native (#4772)

* Fix .NET interactive

* Fix tests and linter

* Update changelog

* Port kernel finder change to release (#4799)

* Fix duplicate kernel generation (#4790)

* Fix duplicate kernel generation

* Fix functional tests

* Update changelog

* Actually use stable

* PORT - Port document dispose fix to release. (#4798)

* Only clean up editors on close not on Panel dispose (#4787)

* update changelog

Co-authored-by: Ian Huff <ianhuff@LICHYOGAIOT.northamerica.corp.microsoft.com>

* Port surveys (#4804)

* Refactor surveys and add a new one (#4794)

* Refactor surveys and add a new one

* add news and lint

* lint

* lint

* PR comments

* update changelog

* Fix IJupyterExtensionBanner service identifier (#4825)

Co-authored-by: Joyce Er <joyceerhuiling@gmail.com>

* PORT - Fix for top level save and undo commands (#4851)

* Update cache ignore

* Actually ignore .so files

* Update release plan

* Put back package.json changes

* Delete news entries

Co-authored-by: Ian Huff <ianhu@microsoft.com>
Co-authored-by: David Kutugata <dakutuga@microsoft.com>
Co-authored-by: Ian Huff <ianhuff@LICHYOGAIOT.northamerica.corp.microsoft.com>
Co-authored-by: Joyce Er <joyceerhuiling@gmail.com>
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.

4 participants