microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.51k stars 28.99k forks source link

Extensions: onDidChangeActiveTextEditor raised with undefined event argument #27100

Closed pprice closed 7 years ago

pprice commented 7 years ago

Steps to Reproduce:

  1. Create an extension that listens to vscode.window.onDidChangeActiveTextEditor
  2. Open a large file (e.g. http://seanlahman.com/files/database/baseballdatabank-2017.1.zip Fielding.csv)
  3. Toggle between two files (one being the large file)

Expected: onDidChangeActiveTextEditor should be raised the active vscode.TextEditor instance.

Actual: onDidChangeActiveTextEditor is raised with undefined

Notes: Some other observations:

jrieken commented 7 years ago

For performance reasons we don't synchronise file that are over 5MB in size. Therefore no editor and document is created in the extension host. We do this to keep the extension host responsive.