Skip to content

Activate banner prompt for Pylance - #12817

Merged
Mikhail Arkhipov (MikhailArkhipov) merged 30 commits into
microsoft:masterfrom
MikhailArkhipov:exp
Jul 22, 2020
Merged

Mikhail Arkhipov (MikhailArkhipov) merged 30 commits into
microsoft:masterfrom
MikhailArkhipov:exp

Conversation

@MikhailArkhipov

@MikhailArkhipov Mikhail Arkhipov (MikhailArkhipov) commented Jul 8, 2020 •

Copy link
Copy Markdown
  • Remove Pylance banner for Jedi users

  • 100% Pylance banner for insiders and 50% for MPLS v1

  • Update tests

  • Change A/B experiments for Pylance to new API.

  • 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 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).
- [ ] The wiki is updated with any design decisions/details.

@MikhailArkhipov Mikhail Arkhipov (MikhailArkhipov) added the no-changelog No news entry required label Jul 8, 2020
Comment thread src/client/languageServices/proposeLanguageServerBanner.ts Outdated

@jakebailey Jake Bailey (jakebailey) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Marking this with request changes temporarily so we can verify the other side of the setting change. The actual banner and stuff is good.

@jakebailey

Copy link
Copy Markdown
Member

I have write permission to this branch (as it's a PR), so I'm going to try and update it.

@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Jul 16, 2020 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@8687f01). Click here to learn what that means.
The diff coverage is 82.45%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #12817   +/-   ##
=========================================
  Coverage          ?   59.91%           
=========================================
  Files             ?      671           
  Lines             ?    36649           
  Branches          ?     5154           
=========================================
  Hits              ?    21958           
  Misses            ?    13593           
  Partials          ?     1098           
Impacted Files Coverage Δ
...lient/common/application/applicationEnvironment.ts 18.18% <0.00%> (ø)
src/client/common/application/types.ts 100.00% <ø> (ø)
src/client/common/types.ts 100.00% <ø> (ø)
src/client/activation/none/activator.ts 14.28% <37.50%> (ø)
src/client/activation/languageServer/activator.ts 93.93% <75.00%> (ø)
...nt/languageServices/proposeLanguageServerBanner.ts 93.47% <96.42%> (ø)
src/client/activation/activationService.ts 84.14% <100.00%> (ø)
...ent/activation/node/languageServerFolderService.ts 80.76% <100.00%> (ø)
src/client/activation/serviceRegistry.ts 82.27% <100.00%> (ø)
src/client/common/constants.ts 100.00% <100.00%> (ø)
... and 674 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8687f01...c1de88a. Read the comment docs.

@jakebailey

Copy link
Copy Markdown
Member

Kim-Adeline Miguel (@kimadeline) I've updated this, if you wanted to take another look with my extra changes.

@kimadeline

Copy link
Copy Markdown

Sounds good! I'll take a look

@jakebailey Jake Bailey (jakebailey) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There's one other change that has to happen, unfortunately; this needs to use the (new) experiment system to allow the numbers to be tweaked without code changes. Marking as request changes until then. This can just wait for the next point release.

Sorry 🙁

@kimadeline

Copy link
Copy Markdown

Sounds good! I won't take a look just yet then lol

Comment thread package.json
@jakebailey

Copy link
Copy Markdown
Member

The missing bit would be to not offer the banner if pylance is already installed.

@MikhailArkhipov

Copy link
Copy Markdown
Author
        if (this.extensions.getExtension(PYLANCE_EXTENSION_ID)) {
            return false;
        }

@jakebailey Jake Bailey (jakebailey) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this looks fine, but Kim-Adeline Miguel (@kimadeline) should look.

@kimadeline

Copy link
Copy Markdown

aight i'm on it

Comment thread src/client/languageServices/proposeLanguageServerBanner.ts Outdated
Comment thread src/client/common/constants.ts Outdated
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.3% 0.3% Duplication

@MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov) merged commit 5e884b1 into microsoft:master Jul 22, 2020
Karthik Nadig (karthiknadig) pushed a commit to karthiknadig/vscode-python that referenced this pull request Jul 22, 2020
* Fix path

* Actually fix settings

* Add news

* Add test

* Format

* Suppress 'jediEnabled' removal

* Drop survey first launch threshold

* Remove LS experiments

* Frequency + tests

* Fix test

* Update message to match spec

* Open workspace for extension rather than changing setting

* Fix localization string

* Show banners asynchronously

* Add experiments

* Formatting

* Typo

* Put back verifyAll

* Remove obsolete experiments, add Pylance

* Suppress experiment if Pylance is installed

* PR feedback

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Karthik Nadig (karthiknadig) added a commit that referenced this pull request Jul 22, 2020
* Ensure languageServer value is valid, send event during activate (#13064)

* Update change log and version

* Activate banner prompt for Pylance (#12817)

* Fix path

* Actually fix settings

* Add news

* Add test

* Format

* Suppress 'jediEnabled' removal

* Drop survey first launch threshold

* Remove LS experiments

* Frequency + tests

* Fix test

* Update message to match spec

* Open workspace for extension rather than changing setting

* Fix localization string

* Show banners asynchronously

* Add experiments

* Formatting

* Typo

* Put back verifyAll

* Remove obsolete experiments, add Pylance

* Suppress experiment if Pylance is installed

* PR feedback

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>

* Update change log as per comments

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Mikhail Arkhipov <mikhaila@microsoft.com>
Karthik Nadig (karthiknadig) added a commit that referenced this pull request Aug 5, 2020
* Update model.isTrusted on trust change (#12820) (#12823)

* Reduce visual complexity of trust prompt (#12839) (#12847)

* Port python 2.7 fix to release (#12877)

* port color fix on collapse all (#12895) (#12897)

* fix a color on collapse all (#12895)

* update changelog

* Merge fixes into July release (#12889)

Co-authored-by: Timothy Ruscica <35348871+techwithtim@users.noreply.github.com>

* Merge more fixes into july release (#12918)

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

* Port trust fixes (#12929)

* Fix regressions in trusted notebooks (#12902)

* Handle trustAllNotebooks selection

* Fix bug where after trusting, UI didn't update

* Recover from ENOENT due to missing parent directory when trusting notebook (#12913)

* Disable keydown on native cells in untrusted notebooks (#12914)

* Hide editor icons when editor is not a notebook (#12934) (#12935)

* Check for hideFromUser before activating current terminal (#12942) (#12956)

* Check for hideFromUser before activating current terminal

* Add tests

* Tweak logic

* Port final trust fixes for release (#12965)

* Only allow Enter / NumpadEnter w/o ctrl/shift/alt (#12939)

* Send telemetry for notebook trust prompt selections (#12964)

* Fixes for persisting trust (#12950)

* Display survey for native notebooks on/after 1st August (#12961) (#12975)

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

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

* Contains cherry picks, version updates, change log updates (#12983)

* Update version and change log

* Improve detection when LS is fully loaded for IntelliCode (#12853)

* Fix path

* Actually fix settings

* Add news

* Add test

* Format

* Suppress 'jediEnabled' removal

* Drop survey first launch threshold

* Wait for client ready

* Handle async dispose

* Fix the date

Co-authored-by: Mikhail Arkhipov <mikhaila@microsoft.com>

* hide the gather button while a cell is executing (#12984)

* Update date (#13002)

* remove release notes from the start page (#13032)

* Cherry pick, version change and change log update (#13079)

* Ensure languageServer value is valid, send event during activate (#13064)

* Update change log and version

* Activate banner prompt for Pylance (#12817)

* Fix path

* Actually fix settings

* Add news

* Add test

* Format

* Suppress 'jediEnabled' removal

* Drop survey first launch threshold

* Remove LS experiments

* Frequency + tests

* Fix test

* Update message to match spec

* Open workspace for extension rather than changing setting

* Fix localization string

* Show banners asynchronously

* Add experiments

* Formatting

* Typo

* Put back verifyAll

* Remove obsolete experiments, add Pylance

* Suppress experiment if Pylance is installed

* PR feedback

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>

* Update change log as per comments

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Mikhail Arkhipov <mikhaila@microsoft.com>

* Port fix the gather survey (#13086) (#13105)

* Fix the gather survey (#13086)

* fix the gather survey
added 'gather stats' telemetry
mention the gather comments to update the python ext

* oops

* fix tests and address comments

* update gather stats when resetting the kernel

* set globalstate vars to 0 when we open vs code

* fix gather stats telemetry

* fix tests

* fix tests for real

Co-authored-by: Joyce Er <joyceerhuiling@gmail.com>
Co-authored-by: Ian Huff <ianhu@microsoft.com>
Co-authored-by: David Kutugata <dakutuga@microsoft.com>
Co-authored-by: Don Jayamanne <don.jayamanne@yahoo.com>
Co-authored-by: Timothy Ruscica <35348871+techwithtim@users.noreply.github.com>
Co-authored-by: Mikhail Arkhipov <mikhaila@microsoft.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
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.

4 participants