From a8f88abfb12f772f496aad2b9866476f7ebb575c Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 10 Oct 2024 10:18:14 -0700 Subject: [PATCH] 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. --- .vscode/settings.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8f97d85829..9543f965b7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,7 @@ { "python.analysis.extraPaths": [ - "src/python" + "src/python", + "ext", + "tests" ] }