Skip to content

Display an informational Pylance prompt for existing users - #16069

Merged
Kim-Adeline Miguel (kimadeline) merged 24 commits into
microsoft:default-language-serverfrom
kimadeline:startup-prompt
May 4, 2021
Merged

Display an informational Pylance prompt for existing users#16069
Kim-Adeline Miguel (kimadeline) merged 24 commits into
microsoft:default-language-serverfrom
kimadeline:startup-prompt

Conversation

@kimadeline

@kimadeline Kim-Adeline Miguel (kimadeline) commented Apr 28, 2021

Copy link
Copy Markdown

For https://github.com/microsoft/vscode-python-internalbacklog/issues/179

  • Prompt is shown to users with a pre-existing install of the extension
  • Prompt will be shown on activation until they click on "Ok" or close the extension

Let me know if you can think of a more appropriate location/filename.

cc Savannah Ostrowski (@savannahostrowski) Luciana Abud (@luabud)

image

@kimadeline Kim-Adeline Miguel (kimadeline) added the no-changelog No news entry required label Apr 28, 2021
@kimadeline
Kim-Adeline Miguel (kimadeline) marked this pull request as ready for review April 28, 2021 16:38
@kimadeline Kim-Adeline Miguel (kimadeline) changed the title Display a Pylance prompt for existing users Display an informational Pylance prompt for existing users Apr 28, 2021
@kimadeline

Copy link
Copy Markdown
Author

Let me close this and re-create this PR against main.

Comment thread src/client/activation/defaultLanguageServerSupport.ts Outdated
Comment thread src/client/application/diagnostics/checks/pylanceDefault.ts Outdated
Comment thread src/client/application/diagnostics/checks/pylanceDefault.ts Outdated
Comment thread src/test/application/diagnostics/checks/pylanceDefault.unit.test.ts Outdated
Comment thread src/client/application/diagnostics/checks/pylanceDefault.ts
Comment thread src/client/application/diagnostics/checks/pylanceDefault.ts Outdated
Comment thread package.nls.json Outdated
@kimadeline

Copy link
Copy Markdown
Author

lol sorry Jake Bailey (@jakebailey) didn't mean to re-request yours

@karrtikr Kartik Raj (karrtikr) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM otherwise

Comment thread src/client/application/diagnostics/checks/pylanceDefault.ts Outdated
Comment thread src/test/application/diagnostics/checks/pylanceDefault.unit.test.ts
@kimadeline
Kim-Adeline Miguel (kimadeline) merged commit 619325b into microsoft:default-language-server May 4, 2021
@kimadeline
Kim-Adeline Miguel (kimadeline) deleted the startup-prompt branch May 4, 2021 22:34
Kim-Adeline Miguel (kimadeline) added a commit that referenced this pull request May 5, 2021
* Bundle Pylance as part of an extension pack (not a hard dependency) (#16077)

   * extension pack
   * Undo package.json change
   * Add extension pack link at build time
   * Forgot to update all names

* Update readme + license at build time (#16134)

* Add license update

* Update package.json description

* Update readme

* Add news file

* Update header wording

* let -> const

* Wording

* Consistenly use VS Code long form

* Display an informational Pylance prompt for existing users (#16069)

* Export extension version memento

* Add localization strings

* Add prompt check

* Add to the list of things triggering on activation

* Add tests

* Rename file

* Remove unsupported newlines

* Fix localization + re-add newlines

* Change to be a non-blocking diagnostic check

* Change localization key

* Update memento on close instead of just on ok

* Fix localization

* Add initialMementoValue handler

* Links

* Fix tests

* Fix tests

* Set PYLANCE_PROMPT_MEMENTO to false

* Remove unused line

* Set to true directly

* Remove extra updateMemento calls

* I can't read

* Period

* Run in foreground

* Add handling test

* Remove extension pack category (#16149)

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
This was referenced May 5, 2021
@brettcannon

Copy link
Copy Markdown
Member

[ @rushfan0 I edited your ✉️ ⬆️ to come off as more 😃 and less 😠 ]

There is no uninstall button because there is no such API in VS Code (it would actually be a potential security hole if there was such a thing).

And the whole reason we are providing this prompt is to give you the opportunity to uninstall Pylance if you don't want it instead of flipping the default without informing you, so this is the best option we have for informing you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No news entry required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants