Merge branch 'preview' into nate/mistral-prefilling
This commit is contained in:
commit
145ad304e4
2 changed files with 10 additions and 2 deletions
|
|
@ -587,7 +587,14 @@ class IdeProtocolClient (
|
|||
"getGitHubAuthToken" -> {
|
||||
val continueSettingsService = service<ContinueExtensionSettings>()
|
||||
val ghAuthToken = continueSettingsService.continueState.ghAuthToken;
|
||||
respond(ghAuthToken)
|
||||
|
||||
if (ghAuthToken == null) {
|
||||
// Open a dialog so user can enter their GitHub token
|
||||
continuePluginService.sendToWebview("openOnboarding", null, uuid())
|
||||
respond(null)
|
||||
} else {
|
||||
respond(ghAuthToken)
|
||||
}
|
||||
}
|
||||
"setGitHubAuthToken" -> {
|
||||
val continueSettingsService = service<ContinueExtensionSettings>()
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { greenButtonColor } from "../../components";
|
|||
import { ftl } from "../../components/dialogs/FTCDialog";
|
||||
import GitHubSignInButton from "../../components/modelSelection/quickSetup/GitHubSignInButton";
|
||||
import { IdeMessengerContext } from "../../context/IdeMessenger";
|
||||
import { isJetBrains } from "../../util";
|
||||
import { getLocalStorage, setLocalStorage } from "../../util/localStorage";
|
||||
import { Div, StyledButton } from "./components";
|
||||
|
||||
|
|
@ -124,7 +125,7 @@ function Onboarding() {
|
|||
</StyledButton>
|
||||
</div>
|
||||
|
||||
{getLocalStorage("onboardingComplete") || (
|
||||
{(!getLocalStorage("onboardingComplete") || isJetBrains()) && (
|
||||
<>
|
||||
<hr className="w-full my-12"></hr>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue