You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It appears the Test Explorer consistently does not detect certain file actions, requiring a restart of VSCode for them to be detected (or adding new test files; this seems to update the view as well).
Affected:
Extension never detects deletion of folders containing tests
Extension never detects renaming folders containing tests
Extension never detects moving folders containing tests, e.g. moving /some-tests/test.qlref inside of /parent-of-tests
It is probably not an issue with codeql resolve tests, because that seems to report the correct directories.
To Reproduce
Try performing any of the actions above and see whether the Test Explorer notices the change.
In case you cannot reproduce this, try opening https://github.com/Marcono1234/codeql-java-queries in VSCode as folder (have not tested as workspace), try the performing the actions described above with any of the folders under codeql-custom-queries-java/tests and see whether the Test Explorer notices the changes.
Expected behavior
The Test Explorer should notice the file actions described above and adjust the view accordingly.
Additional context
I think I have also experienced #310 a few times, however I cannot reproduce it.
The text was updated successfully, but these errors were encountered:
The problem is that our file watcher explicitly only looks for changes to ql and qlref files. Changes to directories are ignored (even if they contain ql and qlref files). It's an easy fix to add a second pattern that matches directories, but I am concerned about performance.
Version
CodeQL CLI v.2.4.6
Extension v1.4.4
OS: Windows 10
Describe the bug
It appears the Test Explorer consistently does not detect certain file actions, requiring a restart of VSCode for them to be detected (or adding new test files; this seems to update the view as well).
Affected:
/some-tests/test.qlref
inside of/parent-of-tests
It is probably not an issue with
codeql resolve tests
, because that seems to report the correct directories.To Reproduce
Try performing any of the actions above and see whether the Test Explorer notices the change.
In case you cannot reproduce this, try opening https://github.com/Marcono1234/codeql-java-queries in VSCode as folder (have not tested as workspace), try the performing the actions described above with any of the folders under
codeql-custom-queries-java/tests
and see whether the Test Explorer notices the changes.Expected behavior
The Test Explorer should notice the file actions described above and adjust the view accordingly.
Additional context
I think I have also experienced #310 a few times, however I cannot reproduce it.
The text was updated successfully, but these errors were encountered: