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

Fix problems with context keys and strings for remote connections #10768

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

rchiodo
Copy link
Contributor

@rchiodo rchiodo commented Jul 11, 2022

Fixes #10672

Also fixes some problems with the 'back' button on the quick pick and supporting undefined as the URI (default state on web).

@rchiodo rchiodo requested a review from a team as a code owner July 11, 2022 19:03
@codecov-commenter
Copy link

Codecov Report

Merging #10768 (7e1424c) into main (2a2309a) will increase coverage by 0%.
The diff coverage is 50%.

@@          Coverage Diff           @@
##            main   #10768   +/-   ##
======================================
  Coverage     63%      63%           
======================================
  Files        476      476           
  Lines      33039    33048    +9     
  Branches    5384     5387    +3     
======================================
+ Hits       20828    20840   +12     
+ Misses     10201    10200    -1     
+ Partials    2010     2008    -2     
Impacted Files Coverage Δ
src/kernels/jupyter/types.ts 100% <ø> (ø)
...ers/commands/serverConnectionControllerCommands.ts 30% <44%> (-1%) ⬇️
src/kernels/jupyter/serverSelector.ts 59% <50%> (-2%) ⬇️
src/kernels/jupyter/launcher/serverUriStorage.ts 66% <55%> (-2%) ⬇️
src/kernels/jupyter/jupyterKernelService.node.ts 79% <0%> (-2%) ⬇️
src/kernels/kernel.base.ts 82% <0%> (+<1%) ⬆️
src/kernels/common/baseJupyterSession.ts 78% <0%> (+<1%) ⬆️
...lPythonAndRelatedNonPythonKernelSpecFinder.node.ts 71% <0%> (+<1%) ⬆️
src/standalone/api/kernelApi.ts 73% <0%> (+1%) ⬆️
src/kernels/jupyter/baseKernelConnectionWrapper.ts 32% <0%> (+2%) ⬆️
... and 2 more

@rchiodo
Copy link
Contributor Author

rchiodo commented Jul 12, 2022

@DonJayamanne @amunger @IanMatthewHuff @sadasant can somebody take a look?

Thanks.

@@ -780,7 +780,7 @@
"comment": ["{Locked='python -m jupyter notebook --version'}"]
},
"DataScience.savePngTitle": "Save Image",
"DataScience.jupyterSelectURIQuickPickTitle": "Pick how to connect to Jupyter",
"DataScience.jupyterSelectURIQuickPickTitle": "Enter the URI of the running Jupyter server",
Copy link
Member

Choose a reason for hiding this comment

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

Isn't there a localize.ts entry as well?

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 bug here was that this file didn't have the new text. the localize.ts file alredy says 'Enter the URI of the running Jupyter server'.

On web we use the nls.json file. On desktop the localize.ts file is translated by the translation files.

Copy link
Member

Choose a reason for hiding this comment

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

@rchiodo Ahh should have paid more attention to the bug. I just saw one file and not the other. Sounds good.

@rchiodo rchiodo merged commit 708004b into main Jul 12, 2022
@rchiodo rchiodo deleted the rchiodo/fix_connect_web branch July 12, 2022 18:04
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.

Default quick pick for selecting a URI doesn't have enough information
4 participants