-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
We have identified[1] this extension as being a possible cause for high load on the extension host. I'd suggest to optimise this part of the provideCompletionItems-function. With very large documents there is potential for bad perf because the whole document is first scanned for /**...*/-blocks (until one includes the cursor-position). Instead I'd advise to take the current cursor position and from there walk left until you see /** and walk right until you see */.
[1] How do we know? The extension host must send a ping every 250ms to the main thread. If that doesn't happen 4 times in a row we send a telemetry event containing the ids of all active extensions. Those lists of ids we analyse to find extensions that occur over and over again.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels