/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2844 TypeError: Cannot read property 'document' of undefined
at disposables.push.documentManager.onDidChangeActiveTextEditor (/Users/donjayamanne/.vscode/extensions/ms-python.python-2018.3.0-alpha/out/client/interpreter/interpreterService.js:54:91)
at e.fire (/Applications/Visual Studio
Based on documentation, this event can get fired even when there's no active editor:
/**
* An [event](#Event) which fires when the [active editor](#window.activeTextEditor)
* has changed. *Note* that the event also fires when the active editor changes
* to `undefined`.
*/
Based on documentation, this event can get fired even when there's no active editor: