Skip to content

No active document available even though onDidChangeActiveTextEditor is fired #1114

@DonJayamanne

Description

@DonJayamanne
/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`.
		 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    debtCode quality issues

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions