I need to retrieve the text of all "find occurrences" in the active editor. By "find occurrences" I mean the highlighted matches that appear when you search in the find widget.

I've tried executing await vscode.commands.executeCommand('editor.action.selectHighlights');, but mysteriously this only seems to work when the find widget is in regex mode.

Does anyone know how to do this?

0

There are 0 best solutions below