misc: Add 'ext' & 'tests' to vscode pythin extraPaths (#1652)

'ext' is set as a Python source path for gem5, like 'src/python'. It
helps vscode users to have vscode aware of this to better analytics and
reduce warnings (most comminly "unable to resolve import).

'tests' isn't in the Python source path when compiling gem5 but it is
when running `tests/main.py`. Though somewhat unideal as is lets vscode
think files in 'src' can import from files in 'test', adding this helps
vscode Python analytics parse the test files which reduces warnings and
aids in betters navigation of the testing code. This is particularly
helpful given the complexity of the testlib testing infrastructure.
This commit is contained in:
Bobby R. Bruce
2024-10-10 10:18:14 -07:00
committed by GitHub
parent 65ba2dcae5
commit a8f88abfb1

View File

@@ -1,5 +1,7 @@
{ {
"python.analysis.extraPaths": [ "python.analysis.extraPaths": [
"src/python" "src/python",
"ext",
"tests"
] ]
} }