You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR; it's like jump to line/col but let's you jump to absolute indices of characters.
The relevant code doesn't do anything extravagant and is pretty straight forward. I've received a couple reports about 'large' files not doing anything. I was able to get my hands on a file provided by one of the users to troubleshoot with. A compressed version can be reviewed here on my onedrive, but if you don't feel comfortable downloading that, it's basically a 300MB json payload, which obviously won't be tokenized/parsed for regions.
My analysis has led me to believe that either:
commands aren't executed for files that don't get tokenized/parsed
commands are registered but files that don't get tokenized/parsed are not considered 'active text editors' when the cursor is in them per normal usage.
I would like to know if my assumptions are valid, in that an editor is not considered 'active' if it is not tokenized/parsed, even if the cursor is actively in the editor, or are those just red herrings? If so, what are the preferred api ways to address this?
Open large file (Not sure about size or character limits), but large being beyond reasonable
Get Notification about tokenization/parsing for regions (though enabling this has no positive effect, which is why i'm not certain they are related, possibly circumnstantial):
Click on the editor text and ensure cursor is present in the editor
Type >Go to Character Position in the command palette and press enter
Nothing happens
Logs display no active text editor is present:
The text was updated successfully, but these errors were encountered:
Does this issue occur when all extensions are disabled?: Not Applicable
I have an extension called Go To Character Position
TLDR; it's like jump to line/col but let's you jump to absolute indices of characters.
The relevant code doesn't do anything extravagant and is pretty straight forward. I've received a couple reports about 'large' files not doing anything. I was able to get my hands on a file provided by one of the users to troubleshoot with. A compressed version can be reviewed here on my onedrive, but if you don't feel comfortable downloading that, it's basically a 300MB json payload, which obviously won't be tokenized/parsed for regions.
My analysis has led me to believe that either:
For brevity, the command has a when clause:
And registered with in the following manner:
I have read the docs and don't see anything addressing limitations or assumptions to consider around these scenarios.
https://code.visualstudio.com/api/references/vscode-api#commands.registerTextEditorCommand
I would like to know if my assumptions are valid, in that an editor is not considered 'active' if it is not tokenized/parsed, even if the cursor is actively in the editor, or are those just red herrings? If so, what are the preferred api ways to address this?
Version: 1.66.0 (system setup)
Commit: e18005f
Date: 2022-03-30T05:50:14.623Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Windows_NT x64 10.0.19043
Steps to Reproduce:
Open large file (Not sure about size or character limits), but large being beyond reasonable
Get Notification about tokenization/parsing for regions (though enabling this has no positive effect, which is why i'm not certain they are related, possibly circumnstantial):
Click on the editor text and ensure cursor is present in the editor
Type
>Go to Character Position
in the command palette and press enterNothing happens
Logs display no active text editor is present:
The text was updated successfully, but these errors were encountered: