ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { Log } from './logger';
/**
* One remembered mapping: the Microsoft account on one side, the GitHub account it resolved to on
* the other.
*/
export interface IAccountLink {
readonly microsoftAccountLabel: string;
readonly gitHubAccountLabel: string;
/**
* The GitHub user id, which is only ever compared with one GitHub has just reported.
*
* Never use it to work out whether two sessions are the same account. That question is the
* product's, and the product answers it with the label: `getAccounts` collapses sessions by
* label, the account picker offers labels, and a session read back from the Keychain may carry
* a placeholder id, an old numeric one, or an id from a lookup that failed. The id answers a
* different question, "did GitHub just hand us a token for somebody else?", which the label
* cannot, because a login can be renamed and a freed login can be taken by another person.
*/
readonly gitHubAccountId: string;
}
/**
* Which Microsoft account each GitHub account was reached through, for every mapping the user has
* agreed to sign in as.
*
* A row is only written once the user has confirmed the GitHub identity discovery resolved, so a
* row means "this person said yes to being this account". That is what lets a fresh window mint a
* session again silently after a reload: the consent is what survived, not the token.
*
* It stays a hint rather than an authority about *which* account, though. The Entra to GitHub
* mapping lives on GitHub's side and can move, so every use of a row re-checks where it points and
* rewrites or drops it rather than trusting it.
*
* Rows are keyed by GitHub account label, the same thing VS Code itself keys an account by, and are
* kept here rather than on each session so that two sessions for the same account share one row and
* the row outlives them. A token running out is not the user saying they are done with that
* identity, and neither is signing out of the Microsoft account: that takes away the way to act on
* the row, not the agreement the row records, and signing back in makes it work again. Only signing
* out of the GitHub account clears a row, along with discovery proving the row points at somebody
* else.
*
* Nothing here is ever written from an observation that the Microsoft account list does not mention
* an account. That list is a per-window cache which legitimately reads empty for a moment while it
* repopulates, and this table is global state that every window shares, so acting on a blink of it
* in one window would sign the user out of all of them for good.
*
* The table holds two account labels and a user id, and no secrets, so it lives in global state
* rather than in the Keychain.
*/
_unlinkedButStillStored
memento vscodeMemento
storageKey
logger Log
IAccountLink
stored mementostorageKey
_unlinkedButStillStoredsize
storedlink _unlinkedButStillStoredlinkgitHubAccountLabel
stored
IAccountLink
links
gitHubAccountLabel
linkslink linkgitHubAccountLabel gitHubAccountLabelmicrosoftAccountLabel
microsoftAccountLabel gitHubAccount vscodeAuthenticationSessionAccountInformation
kept linkslink
linkgitHubAccountLabel gitHubAccountlabel linkmicrosoftAccountLabel microsoftAccountLabel
_unlinkedButStillStoredgitHubAccountlabel
kept
microsoftAccountLabel
gitHubAccountLabel gitHubAccountlabel
gitHubAccountId gitHubAccountid
gitHubAccountLabel
kept linkslink linkgitHubAccountLabel gitHubAccountLabel
keptlength linkslength
_unlinkedButStillStoredgitHubAccountLabel
kept
_unlinkedButStillStoredgitHubAccountLabel
links IAccountLink
mementostorageKey links
e
logger