todo-tree
todo-tree copied to clipboard
Slows down vscode
Loved this extension, however I found out that when enabled it seems to slow down vscode considerably. Any help is appreciated. Thanks!
Can you post your settings? What sort of size is your workspace?
Try these settings:
{
"todo-tree.filtering.useBuiltInExcludes": "file and search excludes",
"todo-tree.tree.scanAtStartup": false
}
The codebase is <1000 lines of code. Will try the settings
Please let me know what your other settings are, so I can take a look. Particularly the regex, if you have changed it.
Here's my settins.json
{ "window.zoomLevel": 2,
"sshfs.configs": [
{
"label": "NNS Beast",
"root": "/home/haoche/secure_computation",
"host": "nns-beast.westus2.cloudapp.azure.com",
"port": 22,
"username": "haoche",
"privateKeyPath": "/Users/haochen/.ssh/id_rsa",
"name": "nns-beast"
},
{
"host": "20.36.29.102",
"name": "haovm",
"password": "HElib<SEAL123",
"root": "/home/haoche/",
"username": "haoche"
}
],
"go.useLanguageServer": true,
"C_Cpp.updateChannel": "Insiders",
"editor.fontFamily": "Menlo",
"testMate.cpp.log.logSentry": "disable_1",
"testMate.cpp.log.userId": "620a95c1e6592a890b516691f18daab4afc39c5a",
"leetcode.workspaceFolder": "/Users/haochen/.leetcode",
"workbench.editor.enablePreview": false,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"cmake.configureOnOpen": true,
"terminal.integrated.fontFamily": "monospace",
"editor.detectIndentation": false,
"terminal.integrated.shell.osx": "/bin/bash",
"explorer.confirmDelete": false,
"debug.onTaskErrors": "debugAnyway",
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"django-html": "html"
},
"markdown-preview-enhanced.previewTheme": "medium.css",
"emmet.includeLanguages": {
"ejs": "html",
},
"macros": {
"commentDown": [
"editor.action.copyLinesDownAction",
"cursorUp",
"editor.action.addCommentLine",
"cursorDown"
],
"addSemi": [
"cursorEnd",
{"command": "type", "args": {"text": ";"}},
"cursorDown",
"cursorHome"
],
"newFunction":[
"cusorBottom"
]
}
}
Hey, I hope you don't mind if I necro this issue but today I was messing arround with my custom snippets and found intelisense being very slow (2 to 3 seconds to make a suggestion !).
After some digging, It appears that Todo Tree is massively slowing down my intelisense (2000+ ms activation time).
I'm using :
- VS Code : v1.67.2
- Todo Tree : v0.0.215
After installing Todo Tree
my intellisense got headache
@haochenuw, @Sov3rain, @Helius01 Is this still an issue for any of you with the latest version of the extension?
@Gruntfuggly
I'm currently testing out on different projects. C#/dotnet/Unity projects were the really slowed ones.
Can you post your settings? Also can you enable the debug channel and post the output from there.
I'm struggling to get to the bottom of this because all it's doing is a background search. It has nothing to do with intellisense. I have got theory, but I think it only applies where lots of TODOs are being found.
https://github.com/Gruntfuggly/todo-tree/blob/a6f60e0ce830c4649ac34fc05e5a1799ec91d151/package.json#L32C1-L34C7 @Gruntfuggly Can you change this configuration? I believe that most of the time, there is no need for this extension to run automatically.