Merge pull request #114 from remlse/patch-1

Recommend rust-analyzer vscode extension
This commit is contained in:
Alex Martens
2022-10-02 08:17:50 -07:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

4
.vscode/README.md vendored
View File

@@ -11,13 +11,13 @@ This directory contains configurations for two platforms:
If you have the `code` command in your path, you can run the following commands to install the necessary extensions. If you have the `code` command in your path, you can run the following commands to install the necessary extensions.
```sh ```sh
code --install-extension rust-lang.rust code --install-extension rust-lang.rust-analyzer
code --install-extension marus25.cortex-debug code --install-extension marus25.cortex-debug
``` ```
Otherwise, you can use the Extensions view to search for and install them, or go directly to their marketplace pages and click the "Install" button. Otherwise, you can use the Extensions view to search for and install them, or go directly to their marketplace pages and click the "Install" button.
- [Rust Language Server (RLS)](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust) - [Rust Language Server (rust-analyzer)](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
- [Cortex-Debug](https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug) - [Cortex-Debug](https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug)
## Use ## Use

View File

@@ -4,11 +4,11 @@
// List of extensions which should be recommended for users of this workspace. // List of extensions which should be recommended for users of this workspace.
"recommendations": [ "recommendations": [
"rust-lang.rust", "rust-lang.rust-analyzer",
"marus25.cortex-debug", "marus25.cortex-debug",
], ],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. // List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [ "unwantedRecommendations": [
] ]
} }

8
.vscode/launch.json vendored
View File

@@ -1,7 +1,7 @@
{ {
/* /*
* Requires the Rust Language Server (RLS) and Cortex-Debug extensions * Requires the Rust Language Server (rust-analyzer) and Cortex-Debug extensions
* https://marketplace.visualstudio.com/items?itemName=rust-lang.rust * https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer
* https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug * https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug
*/ */
"version": "0.2.0", "version": "0.2.0",
@@ -13,7 +13,7 @@
"servertype": "qemu", "servertype": "qemu",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"preLaunchTask": "Cargo Build (debug)", "preLaunchTask": "Cargo Build (debug)",
"runToMain": true, "runToEntryPoint": "main",
"executable": "./target/thumbv7m-none-eabi/debug/{{project-name}}", "executable": "./target/thumbv7m-none-eabi/debug/{{project-name}}",
/* Run `cargo build --example hello` and uncomment this line to run semi-hosting example */ /* Run `cargo build --example hello` and uncomment this line to run semi-hosting example */
//"executable": "./target/thumbv7m-none-eabi/debug/examples/hello", //"executable": "./target/thumbv7m-none-eabi/debug/examples/hello",
@@ -28,7 +28,7 @@
"servertype": "openocd", "servertype": "openocd",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"preLaunchTask": "Cargo Build (debug)", "preLaunchTask": "Cargo Build (debug)",
"runToMain": true, "runToEntryPoint": "main",
"executable": "./target/thumbv7em-none-eabihf/debug/{{project-name}}", "executable": "./target/thumbv7em-none-eabihf/debug/{{project-name}}",
/* Run `cargo build --example itm` and uncomment this line to run itm example */ /* Run `cargo build --example itm` and uncomment this line to run itm example */
// "executable": "./target/thumbv7em-none-eabihf/debug/examples/itm", // "executable": "./target/thumbv7em-none-eabihf/debug/examples/itm",