我正在开发一个扩展程序,作为其操作的一部分,它还需要更改/实施另一个扩展程序的特定设置。
我看了文档和所提供的示例,但是找不到解决方法。
我想更改与Python扩展相关的设置,例如,它们存储在vscode设置文件中:
"python.linting.enabled": true,
"python.pythonPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\python.exe",
"python.autoComplete.extraPaths": [
"C:\\develop\\MyPython\\Stubber\\stubs\\core_1_10_0",
"C:\\develop\\MyPython\\Stubber\\stubs\\ESP_LoBo_v3.2.24",
"C:\\develop\\MyPython\\Stubber\\stubs\\esp32_1_10_0",
],
"python.autoComplete.typeshedPaths": [
"C:\\develop\\MyPython\\Stubber\\stubs\\core_1_10_0",
"C:\\develop\\MyPython\\Stubber\\stubs\\ESP_LoBo_v3.2.24",
"C:\\develop\\MyPython\\Stubber\\stubs\\esp32_1_10_0",
],
"python.analysis.typeshedPaths": [
"C:\\develop\\MyPython\\Stubber\\stubs\\core_1_10_0",
"C:\\develop\\MyPython\\Stubber\\stubs\\ESP_LoBo_v3.2.24",
"C:\\develop\\MyPython\\Stubber\\stubs\\esp32_1_10_0",
],
"python.linting.pylintEnabled": true,
以及pylint的设置,这些设置存储在项目文件夹的.pylintrc
文件中
仅读取/解码这些文件并覆盖这些设置似乎有点不礼貌。 有什么更好的方法?