I've recently noticed an issue with the tabnine extension in Eclipse Theia, see https://github.com/eclipse-theia/theia/issues/13336. I've tracked the issue down to a call to getState, which incorrectly fires the auth session change event, even though no login information has changed (some other, state related information changed, but the auth info was the same). I couldn't figure out why the extension behaves differently in vscode vs Theia, since both send the exact same events to the extension.
Instead, this change prevents the session change event from firing in case the access token didn't change. I've confirmed that this fixes the issue in Theia and as far as I could tell doesn't introduce any regression in vscode.
I've recently noticed an issue with the tabnine extension in Eclipse Theia, see https://github.com/eclipse-theia/theia/issues/13336. I've tracked the issue down to a call to
getState
, which incorrectly fires the auth session change event, even though no login information has changed (some other, state related information changed, but the auth info was the same). I couldn't figure out why the extension behaves differently in vscode vs Theia, since both send the exact same events to the extension.Instead, this change prevents the session change event from firing in case the access token didn't change. I've confirmed that this fixes the issue in Theia and as far as I could tell doesn't introduce any regression in vscode.