Conversation
| const decorationDebounceDelay = vscode.workspace | ||
| .getConfiguration("cursorless") | ||
| .get<number>("decorationDebounceDelay")!; |
There was a problem hiding this comment.
Do you think there's much of a performance impact to reading this one every time the document changes? The proper way to do this would be to set in constructor and then listen for settings changes, but I can't decide whether it's worth the effort. I'll leave it to you to decide whether to do that or just leave this one as is
There was a problem hiding this comment.
Already tried I can't even measure the performance difference since the run to run variation is larger.
Looked at performance draw in task manager during full scroll up and down and uses 2-3% no matter if we read this setting or not.
There was a problem hiding this comment.
Might actually be that vscode internally caches settings if the file hasn't updated
No description provided.