diff --git a/esp-hal-common/.vscode/esp32.settings.json b/esp-hal-common/.vscode/esp32.settings.json deleted file mode 100644 index 0aab4bf55..000000000 --- a/esp-hal-common/.vscode/esp32.settings.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "rust-analyzer.cargo.features": [ - "esp32" - ], - "rust-analyzer.cargo.allFeatures": false, - "editor.formatOnSave": false, - "rust-analyzer.checkOnSave.allTargets": true, - "rust-analyzer.checkOnSave.allFeatures": false, - "rust-analyzer.checkOnSave.overrideCommand": [ - "cargo", - "check", - "--features", - "esp32", - "--message-format=json", - "-Z", - "build-std=core", - "--target", - "xtensa-esp32-none-elf", - "--examples", - "--lib", - ], - "rust-analyzer.cargo.buildScripts.enable": false -} \ No newline at end of file diff --git a/esp-hal-common/.vscode/esp32c3.settings.json b/esp-hal-common/.vscode/esp32c3.settings.json deleted file mode 100644 index 3864e3c46..000000000 --- a/esp-hal-common/.vscode/esp32c3.settings.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "rust-analyzer.cargo.features": [ - "esp32c3" - ], - "rust-analyzer.cargo.allFeatures": false, - "editor.formatOnSave": true, - "rust-analyzer.checkOnSave.allTargets": true, - "rust-analyzer.checkOnSave.allFeatures": false, - "rust-analyzer.checkOnSave.overrideCommand": [ - "cargo", - "check", - "--features", - "esp32c3", - "--message-format=json", - "-Z", - "build-std=core", - "--target", - "riscv32imc-unknown-none-elf", - "--examples", - "--lib", - ], - "rust-analyzer.cargo.buildScripts.enable": false -} \ No newline at end of file diff --git a/esp-hal-common/.vscode/esp32s2.settings.json b/esp-hal-common/.vscode/esp32s2.settings.json deleted file mode 100644 index 5c7e60350..000000000 --- a/esp-hal-common/.vscode/esp32s2.settings.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "rust-analyzer.cargo.features": [ - "esp32s2" - ], - "rust-analyzer.cargo.allFeatures": false, - "editor.formatOnSave": false, - "rust-analyzer.checkOnSave.allTargets": true, - "rust-analyzer.checkOnSave.allFeatures": false, - "rust-analyzer.checkOnSave.overrideCommand": [ - "cargo", - "check", - "--features", - "esp32s2", - "--message-format=json", - "-Z", - "build-std=core", - "--target", - "xtensa-esp32s2-none-elf", - "--examples", - "--lib", - ], - "rust-analyzer.cargo.buildScripts.enable": false -} \ No newline at end of file diff --git a/esp-hal-common/.vscode/esp32s3.settings.json b/esp-hal-common/.vscode/esp32s3.settings.json deleted file mode 100644 index 13b90a45b..000000000 --- a/esp-hal-common/.vscode/esp32s3.settings.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "rust-analyzer.cargo.features": [ - "esp32s3" - ], - "rust-analyzer.cargo.allFeatures": false, - "editor.formatOnSave": false, - "rust-analyzer.checkOnSave.allTargets": true, - "rust-analyzer.checkOnSave.allFeatures": false, - "rust-analyzer.checkOnSave.overrideCommand": [ - "cargo", - "check", - "--features", - "esp32s3", - "--message-format=json", - "-Z", - "build-std=core", - "--target", - "xtensa-esp32s3-none-elf", - "--examples", - "--lib", - ], - "rust-analyzer.cargo.buildScripts.enable": false -} \ No newline at end of file diff --git a/esp-hal.code-workspace b/esp-hal.code-workspace new file mode 100644 index 000000000..03dfeaf5b --- /dev/null +++ b/esp-hal.code-workspace @@ -0,0 +1,31 @@ +{ + "folders": [ + { + "path": "esp-hal-common" + }, + { + "path": "esp32-hal" + }, + { + "path": "esp32c3-hal" + }, + { + "path": "esp32s2-hal" + }, + { + "path": "esp32s3-hal" + }, + { + "path": "esp-hal-procmacros" + } + ], + "settings": { + "editor.formatOnSave": true, + "rust-analyzer.checkOnSave.allTargets": false, + "rust-analyzer.imports.granularity.enforce": true, + "rust-analyzer.imports.granularity.group": "crate", + "rust-analyzer.cargo.buildScripts.enable": true, + "rust-analyzer.procMacro.attributes.enable": true, + "rust-analyzer.procMacro.enable": true, + } +} \ No newline at end of file