-
Notifications
You must be signed in to change notification settings - Fork 1.3k
wip new jedi tryPylance banner #14697
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
Conversation
Codecov Report
|
| ShowBanner = 'TryPylanceBannerJedi' | ||
| } | ||
|
|
||
| /* |
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.
This file is basically the same as the previous tryPylance banner ProposePylanceBanner.ts
just the data and some of the logic have changed
| promptContent = await this.experiments.getExperimentValue<string>(TryPylance.jediPrompt1); | ||
| } else if (await this.experiments.inExperiment(TryPylance.jediPrompt2)) { | ||
| promptContent = await this.experiments.getExperimentValue<string>(TryPylance.jediPrompt2); | ||
| } |
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.
new way to check if we're in an experiment and also get the banner string
| if (lsType !== LanguageServerType.Jedi) { | ||
| return false; | ||
| } | ||
| return this.persistentState.createGlobalPersistentState<boolean>(ProposeLSStateKeys.ShowBanner, true).value; |
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.
okay to use same key?
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.
I defined a new key but the string inside is different. I'll double check if i need to export it.
export enum ProposeLSStateKeys {
ShowBanner = 'TryPylanceBannerJedi'
}
| @inject(IExperimentService) experimentService: IExperimentService | ||
| @inject(IExperimentService) experimentService: IExperimentService, | ||
| @inject(IPythonExtensionBanner) | ||
| @named(BANNER_NAME_PROPOSE_LS_FOR_JEDI_USERS) |
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.
what is named?
45ac706 to
ee5d9f7
Compare
adding experimentName to old tryPlance test telemetry
|
Kudos, SonarCloud Quality Gate passed!
|
|
Closing in favor of #14759. |
Todo:
For #
package-lock.jsonhas been regenerated by runningnpm install(if dependencies have changed).