-
Notifications
You must be signed in to change notification settings - Fork 186
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
firebase token file sync #801
Conversation
@@ -3,7 +3,7 @@ import * as os from "os"; | |||
|
|||
export const TABNINE_CONFIG_DIR = path.join(os.homedir(), ".config", "TabNine"); | |||
|
|||
export const TABNINE_TOKEN_FILE_NAME = "tabnine.token"; | |||
export const TABNINE_TOKEN_FILE_NAME = ".refresh_token_v2"; |
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.
Replace with
export const TABNINE_TOKEN_FILE_NAME = ".refresh_token_v2"; | |
export const TABNINE_TOKEN_FILE_NAME = ".refresh_token"; |
src/cloudEnvs/authentication.api.ts
Outdated
|
||
async function openBinaryConfig(url: string): Promise<void> { | ||
const config = await configuration({ quiet: true, source: StateType.AUTH }); | ||
if (config && config.message) { |
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.
Replace with
if (config && config.message) { | |
if (config?.message) { |
src/cloudEnvs/authentication.api.ts
Outdated
|
||
async function openBinaryConfig(url: string): Promise<void> { | ||
const config = await configuration({ quiet: true, source: StateType.AUTH }); | ||
if (config && config.message) { |
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.
Replace with
if (config && config.message) { | |
if (config?.message) { |
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.
amogus
const config = await configuration({ quiet: true, source: StateType.AUTH }); | ||
if (config && config.message) { | ||
const localUri = await env.asExternalUri(Uri.parse(config.message)); | ||
const callback = `https://app.tabnine.com/auth/sign-in?tabnineUrl=${localUri.toString()}&sync=false`; |
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.
Bassa having it here. No?
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.
Just deform the .js files into a .html
Former-commit-id: ebcd3bed9b86d98a05c50cf81eb76b12ce6816ab [formerly b154b272dd7e3745b9b48c6baf9e45253d8f2195] [formerly 397f7fb72fafe709abdea764b7dd999169c141a6 [formerly 98b9fad]] Former-commit-id: 1b2b53122191793ca5d5bdeadb932816ae8dd0c4 [formerly 7cc69fb7980652fef166f39c2ee805f02fb77cb6] Former-commit-id: 7d52956dea64d3f477b3c957c8b115da4a31e109
No description provided.