earshinov / vscode-filter-lines

Extension for Visual Studio Code allowing to quickly find all lines matching a string or regular expression
https://marketplace.visualstudio.com/items?itemName=earshinov.filter-lines
MIT License
14 stars 3 forks source link

When I select Filter Lines: Include ... (either string or regex) nothing happens with a large file #34

Open bradlitterell opened 6 months ago

bradlitterell commented 6 months ago

When tryign to filter a large file (6 million lines). nothing happens, I never get the opportunity to input a filter expression/string. I simply get dropped back in my 6 million line log file.

With smaller text files the extension seems to work, but inability to use it on large files defeats the purpose.

earshinov commented 6 months ago

Hey @bradlitterell! The absence of a prompt window suggests that VS Code doesn't even get to executing the extension's code. The extension registers a text editor command, and VS Code needs to set up an editing context so that the extension could do its job. With 6 million lines, this preparatory work alone take too much time. I would say, such an amount warrants using separate tools rather than relying solely on an IDE...