-
Notifications
You must be signed in to change notification settings - Fork 9
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
changed user information popup through vscode showInformationMessage #121
changed user information popup through vscode showInformationMessage #121
Conversation
SachinS10-lab
commented
Oct 30, 2024
•
edited
Loading
edited
- Added chat model selection user information popup in configureAssistant.ts file.
- Added welcome user information popup in setupGranitePage.ts
src/panels/setupGranitePage.ts
Outdated
// Check if we should show the Continue Onboarding message | ||
const shouldShowContinueOnboarding = await this.shouldShowContinueOnboarding(); | ||
if (shouldShowContinueOnboarding) { | ||
vscode.window.showInformationMessage( | ||
`Upon launching Continue AI code Assistant, A Quickstart Popup will be displayed. | ||
Make sure to close it before setting up IBM Granite Code Models.`, | ||
`` | ||
); |
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.
no, this message will only be shown once configuration is done
src/panels/setupGranitePage.ts
Outdated
private async shouldShowContinueOnboarding(): Promise<boolean> { | ||
const config = await readConfig(configFilePath); | ||
if (!config || !config.models) { | ||
vscode.window.showErrorMessage(`No Models Found!`); | ||
return false; | ||
} | ||
return config.models.length === 1 && | ||
config.models[0].provider === "anthropic" && | ||
config.models[0].apiKey === ""; | ||
} | ||
|
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.
please delete this
src/configureAssistant.ts
Outdated
public async openWizard() { | ||
if (isContinueInstalled()) { | ||
vscode.window.showInformationMessage( |
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.
only display if mightShowContinueOnboarding returns true
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.
also, run this popup only after calling this.configureAssistant();
src/configureAssistant.ts
Outdated
@@ -103,8 +103,23 @@ export class AiAssistantConfigurator { | |||
this.apiBase = DEFAULT_API_BASE; | |||
} | |||
|
|||
private async shouldShowContinueOnboarding(configFile: string): Promise<boolean> { |
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.
rename to mightShowContinueOnboarding
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.
Signed-off-by: sachinsuresh-s10 <[email protected]>
674b11f
to
fc63518
Compare
Signed-off-by: sachinsuresh-s10 <[email protected]>
fc63518
to
c9e2944
Compare
Thanks @SachinS10-lab |