-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with views #98
Comments
What version of Todo+ are you using? What OS are you using? |
I can't reproduce this, not on macOS nor on Windows. Can you zip me a folder where you see this happening? And can you paste here your settings if you changed them?
I believe leading whitespace characters are trimmed automatically by VSC, I can't see them on macOS and Windows. Are you using tabs instead of spaces? (Maybe those are not trimmed? I don't know)
IMO, unless for some reasons you're not using icons ( Regarding the extra whitespace: sure, that shouldn't be there, but I can't reproduce your problem.
That doesn't mean that it doesn't work. Just change your regex (todo.embedded.regex) accordingly. If this is a common enough use case I might add support to this to the default regex, but I don't think I've actually ever seen that in the wild before.
I think the whole line should be displayed here (
Again, I can't reproduce this. I can just add a line for trimming whitespaces, but I'd like to know why this is not happening on your system first. |
Just visiting the installation folder of this extension I can reproduce the problem with default settings. I'm running Arch Linux with the latest release of todo+. I'm also using 4 spaces as the indentation. |
@nealot can you check if embedded todos' whitespaces are trimmed for you in v4.1.0? |
Yeah the whitespaces are trimmed when enabling whole lines now. Although you're probably right that it looks better without it enabled. |
If you need to look at the code you can just hover over a todo and you'll see the code preceding it in the tooltip. I'll tackle the other problems you had in the following days, let me know if you find any other problems. |
Thanks for the tip about the hovers! Here is what I see when testing out the different providers: Using Ripgrep (after pressing refresh)Using silver searcherUsing Javascript (prior to pressing refresh)Using Javascript (after pressing refresh)I tested this out in the "extension/fabiospampinato.vscode-todo-plus-4.0.6/" folder. And for reference, here is what the file view I was mentioning looks like: |
ripgrep doesn't support lookaheads, which are used by default in I don't know why the silver searcher is looking into the I'll fix the file view on the next update, but I've still no idea why spaces are not trimmed on your system though. Yeah an API for badges would be cool, there's an issue about that microsoft/vscode#38426. |
@fabiospampinato what would be the default regex for ripgrep? I get a similiar problem also also a huge CPU load when using AG provider each time I change the view or add a include to the embedded. |
@muuvmuuv there's only one regex, the one defined in I think AG is multi-threaded, it tries to parallelize work as much as possible, hence the CPU spike. It should be pretty quick/lightweight on refreshes though, isn't it? Are you also seeing results from |
Yep, I'll work with Nope, but from other directories that are excluded: {
"todo.embedded.exclude": [
"**/.git",
"**/node_modules",
"**/vendor",
"**/tmp",
"**/logs",
"**/vendor",
"**/bin",
"**/cache",
"**/cli",
"**/libs",
"**/dist",
"**/assets",
"**/administrator",
"**/plugins"
],
"todo.embedded.include": [
"modules/mod_additive_*/**", "plugins/content/additive_*/**", "components/com_add*/**", "templates/additive/**"
],
} Those administrator and plugins are still in the embedded view. |
Include and exclude patterns aren't currently supported by I'll fix this in the next release on the one after that 👍 |
Ah okay, I just copied the double-stars from your docs, that's why I thought it would work. I'll wait for the next release. And javascript is the only one who can exclude and include right? But doesn't |
Both |
Refresh in Embedded does not working. I must execute "reload window" of vscode to todo-list process new config file. |
@EvgeniyMakhmudov can you open a separate issue about that? Let's see what can be done. We are currently caching some values for performance reasons. |
I've just pushed v4.1.1, I think everything mentioned here has been fixed (check the changelog for more info) except maybe the bug that causes files from The release is still not perfect though, there's at least another little problem to fix, but I'll be busy during the next ~24h so I'll work on that later. |
Everything seems to be working now! |
@fabiospampinato just for clarification: I will now use the default So this is my
Will this override or extend the |
Nice.
Can you open a separate issue about this please? |
Still doesn't work if one tries to exclude top level directory of the project. I mean that if you have a "local" directory in the projects root then "/local/","local/**","local/" etc. don't exclude anything. |
Embedded
"todo.embedded.exclude" is not working. On each subsequent refresh, more files from excluded directories are displayed.
Steps to reproduce:
In addition to this, could "todo.embedded.view.wholeLine" trim leading and trailing whitespace or comment characters? Viewing the whole line is not very useful because it includes indentation and most people want to see this format:
Instead of:
Having
"todo.embedded.view.wholeLine" : false
doesn't always work because some people do:Which would currently result in
and having
displays
File
Like the suggestion above, indentation should be trimmed from the values. This is especially disturbing with nested headers:
which would (roughly) be shown as
The text was updated successfully, but these errors were encountered: