Skip to content

Commit

Permalink
Convert the VS Code workspace file into a standard settings file (esp…
Browse files Browse the repository at this point in the history
…-rs#830)

* Convert the VS Code workspace file into a standard settings file

* Add a VS Code extensions file to suggest useful extensions
  • Loading branch information
jessebraham authored Oct 3, 2023
1 parent df4ec5b commit 1a23f38
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 65 deletions.
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ Cargo.lock
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Other
**/settings.json

# wokwi related files
# Wokwi related files
diagram.json
wokwi.toml

# vscode
.vscode
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["rust-lang.rust-analyzer", "tamasfe.even-better-toml"]
}
28 changes: 28 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"editor.formatOnSave": true,

"rust-analyzer.cargo.buildScripts.enable": true,
"rust-analyzer.check.allTargets": false,
"rust-analyzer.imports.granularity.enforce": true,
"rust-analyzer.imports.granularity.group": "crate",
"rust-analyzer.procMacro.attributes.enable": true,
"rust-analyzer.procMacro.enable": true,
"rust-analyzer.showUnlinkedFileNotification": false,

// Uncomment ONE line for the chip you want to work on.
// This makes rust-analyzer work on the HAL crate and all its dependencies.
"rust-analyzer.linkedProjects": [
"esp32-hal/Cargo.toml"
// "esp32c2-hal/Cargo.toml",
// "esp32c3-hal/Cargo.toml",
// "esp32c6-hal/Cargo.toml",
// "esp32c6-lp-hal/Cargo.toml",
// "esp32h2-hal/Cargo.toml",
// "esp32s2-hal/Cargo.toml",
// "esp32s3-hal/Cargo.toml",
],

"[toml]": {
"editor.formatOnSave": false
}
}
58 changes: 0 additions & 58 deletions esp-hal.code-workspace

This file was deleted.

0 comments on commit 1a23f38

Please sign in to comment.