-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
feat(perf): allow configuring search path #2952
base: dev
Are you sure you want to change the base?
Conversation
6674ae9
to
d003bda
Compare
console.log(`configurationService.url: ${configurationService.url}`) | ||
console.log(`configurationService.searchPath: ${configurationService.searchPath}`) | ||
console.log(`params.rootUri: ${params.rootUri}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This helped a lot in understanding what was going on on startup.
TODO: remove this before merge if PR is accepted.
} | ||
}; | ||
console.log(`rootUri: ${rootUri}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This helped a lot in understanding what was going on on startup.
TODO: remove this before merge if PR is accepted.
@@ -58,18 +47,19 @@ export class VsCodeFileAccessor implements FileAccessor { | |||
filelist: string[] = [], | |||
): string[] { | |||
subFolder = path.normalize(subFolder); | |||
console.log(`fileAccessor.tf:getFilesInFolder:subFolder: ${subFolder}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This helped a lot in understanding what was going on on startup.
TODO: remove this before merge if PR is accepted.
d003bda
to
143c343
Compare
aca0091
to
387d315
Compare
Hi @keesschollaart81 @frenck, gentle ping :) |
3252499
to
abf0a1c
Compare
abf0a1c
to
d1571a4
Compare
d1571a4
to
deb9529
Compare
deb9529
to
b4ba663
Compare
This PR allows configuring the path from which Home Assistant configuration files will be searched.
Empty by default, so all files in the workspace are still evaluated.
On large workspaces, setting this specifically to the path where configuration files are located can improve performance drastically. Path can be absolute or relative to the workspace root.
Also, I believe it resolves the 100% CPU usage and process not exiting after VSCode is closed behaviors reported several issues.