in vscode/qodana/src/core/auth/index.ts [134:149]
startSubscriptions() {
this.stateEmitter.event(state => {
this.lastState = state;
if (state instanceof NotAuthorizedImpl) {
vscode.commands.executeCommand('setContext', STATE_AUTHORIZING, false);
vscode.commands.executeCommand('setContext', STATE_SIGNED_IN, false);
} else if (state instanceof AuthorizingImpl) {
vscode.commands.executeCommand('setContext', STATE_AUTHORIZING, true);
vscode.commands.executeCommand('setContext', STATE_SIGNED_IN, false);
} else if (state instanceof AuthorizedImpl) {
vscode.commands.executeCommand('setContext', STATE_AUTHORIZING, false);
vscode.commands.executeCommand('setContext', STATE_SIGNED_IN, true);
extensionInstance.linkService?.getProjectProperties(undefined, false);
}
});
}