src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelActionViewItem.ts/NotebooKernelActionViewItem/_update
class NotebooKernelActionViewItem:	protected _update(): void {
		const notebook = this._editor.textModel;

		if (!notebook) {
			this._resetAction();
			return;
		}

		const runningActions = this._notebookKernelService.getRunningSourceActions();
		if (runningActions.length) {
			return this._updateActionFromSourceAction(runningActions[0] /** TODO handle multiple actions state */, true);
		}

		const info = this._notebookKernelService.getMatchingKernel(notebook);
		if (info.all.length === 0) {
			return this._updateActionsFromSourceActions();
		}

		this._updateActionFromKernelInfo(info);
	}