VS Code doesn't provide the document element of the editor when a large file is open. This means that extensions can't get any file information at all.
Editing still works fine, even a (large number of) find/replace functions work.
Using registerTextEditorCommand fails to enter the callback function at all (presumably the exception is thrown when the arguments to the callback are created) and trying to access the document via the activeTextEditor in registerCommand fails (throws) when attempting to access the .document getter of the TextEditor object. Inspecting the activeTextEditor object shows that _documentData is undefined
I've had this failure with a 6MB file. Yet editing, and highlighting (JSON) work on a 16MB file.
VS Code doesn't provide the document element of the editor when a large file is open. This means that extensions can't get any file information at all.
Editing still works fine, even a (large number of) find/replace functions work.
Using
registerTextEditorCommandfails to enter the callback function at all (presumably the exception is thrown when the arguments to the callback are created) and trying to access the document via the activeTextEditor inregisterCommandfails (throws) when attempting to access the.documentgetter of theTextEditorobject. Inspecting the activeTextEditor object shows that_documentDataisundefinedI've had this failure with a 6MB file. Yet editing, and highlighting (JSON) work on a 16MB file.