-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34: Start using prettier r=noppej a=dbrgn Updated version of #32. To check formatting: npx prettier --check . To reformat: npx prettier -w . Co-authored-by: Danilo Bargen <[email protected]>
- Loading branch information
Showing
17 changed files
with
1,170 additions
and
1,025 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file is used to ignore certain commits (e.g. reformatting) in git blame. | ||
# | ||
# To use it, invoke `git blame` like this: | ||
# | ||
# git blame --ignore-revs-file .git-blame-ignore-revs | ||
# | ||
# Alternatively, make this the default: | ||
# | ||
# git config [--global] blame.ignoreRevsFile .git-blame-ignore-revs | ||
|
||
# 2022-12-31: Reformat code with prettier | ||
fcc2ef44edfc1cc2bc10ade2522e7baf942ae090 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/node_modules/ | ||
/dist/ | ||
/out/ | ||
/dap/ | ||
/package-lock.json | ||
**/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Global rules | ||
arrowParens: always | ||
bracketSpacing: false | ||
endOfLine: lf | ||
printWidth: 100 | ||
quoteProps: consistent | ||
singleQuote: true | ||
tabWidth: 4 | ||
trailingComma: all | ||
|
||
# Overrides | ||
overrides: | ||
- files: '*.yml' | ||
options: | ||
tabWidth: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"amodio.tsl-problem-matcher", | ||
"ms-vscode.hexeditor" | ||
] | ||
} | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"amodio.tsl-problem-matcher", | ||
"ms-vscode.hexeditor", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/dist/ext/**/*.js" | ||
], | ||
"preLaunchTask": "npm: watch" | ||
} | ||
] | ||
} | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": ["--extensionDevelopmentPath=${workspaceFolder}"], | ||
"outFiles": ["${workspaceFolder}/dist/ext/**/*.js"], | ||
"preLaunchTask": "npm: watch" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,93 @@ | ||
# VS Code probe-rs-debugger | ||
|
||
|
||
## Documentation | ||
Full documentation on Installation, Configuration and supported functionality can be found at [the probe-rs webpage](https://probe.rs/docs/tools/vscode/) and under the [visual tour heading](https://probe.rs/docs/tools/vscode/#a-visual-guide-of-implemented-features) | ||
|
||
![<img src="images/probe-rs-debugger.gif" style="margin-top: 1em; margin-bottom: 1em; max-width:100%; max-height:100%; width: auto; height: auto;" />](images/probe-rs-debugger.gif) | ||
Full documentation on Installation, Configuration and supported functionality | ||
can be found at [the probe-rs webpage](https://probe.rs/docs/tools/vscode/) and | ||
under the [visual tour | ||
heading](https://probe.rs/docs/tools/vscode/#a-visual-guide-of-implemented-features) | ||
|
||
![<img src="images/probe-rs-debugger.gif" style="margin-top: 1em; margin-bottom: 1em; max-width:100%; max-height:100%; width: auto; height: auto;" />](images/probe-rs-debugger.gif) | ||
|
||
## Development Setup | ||
|
||
To work on this extensions, you first need to install VS Code and nodejs. Afterwards, follow the following steps: | ||
|
||
- Install yarn: | ||
```bash | ||
npm install -g yarn | ||
``` | ||
- Checkout this repository | ||
- Inside the repository, install the prerequisites: | ||
```bash | ||
yarn | ||
``` | ||
- Install the extensions VS Code recommends. If you prefer to do this manually, you can find the list of recommended extensions in the repository's `.vscode/settings.json' file. These can then be installed from the command line, for example: | ||
```bash | ||
code --install-extension amodio.tsl-problem-matcher | ||
``` | ||
- Open VS Code | ||
- Press F5 to start a new VS Code instance where the extension can be debugged. You can also open the "Run and Debug" panel in the left sidebar, and then start the "Extension" debug configuration. | ||
To work on this extensions, you first need to install VS Code and nodejs. | ||
Afterwards, follow the following steps: | ||
|
||
* Install yarn: | ||
|
||
npm install -g yarn | ||
|
||
* Checkout this repository | ||
* Inside the repository, install the prerequisites: | ||
|
||
yarn | ||
|
||
* Install the extensions VS Code recommends. If you prefer to do this manually, | ||
you can find the list of recommended extensions in the repository's | ||
`.vscode/settings.json' file. These can then be installed from the command | ||
line, for example: | ||
|
||
code --install-extension amodio.tsl-problem-matcher | ||
|
||
* Open VS Code | ||
* Press F5 to start a new VS Code instance where the extension can be debugged. | ||
You can also open the "Run and Debug" panel in the left sidebar, and then | ||
start the "Extension" debug configuration. | ||
|
||
### To run against a compiled executable of `probe-rs-debugger` | ||
|
||
* Modify the `debug-example` entry in '.vscode/launch.json' file to point to your target project. | ||
* Press `F5` to __build and launch executable__ `probe-rs-debugger`. VSCode will open another VS Code window. In that window, | ||
* Modify the `debug-example` entry in '.vscode/launch.json' file to point to | ||
your target project. | ||
* Press `F5` to __build and launch executable__ `probe-rs-debugger`. VSCode will | ||
open another VS Code window. In that window, | ||
* You will see the `debug-example` project you just configured. | ||
* Select the debug environment `probe_rs Executable Test`.* Press `F5` to start debugging. | ||
|
||
* Select the debug environment `probe_rs Executable Test`.* Press `F5` to start | ||
debugging. | ||
|
||
### To run against a debuggable instance of `probe-rs-debugger` | ||
|
||
* Clone the [probe-rs](https://github.com/probe-rs/probe-rs.git) repository, and open it in VSCode. | ||
* In this `probe-rs` repo, select the debug environment `DAP-Server probe-rs-debugger` | ||
* Clone the [probe-rs](https://github.com/probe-rs/probe-rs.git) repository, and | ||
open it in VSCode. | ||
* In this `probe-rs` repo, select the debug environment `DAP-Server | ||
probe-rs-debugger` | ||
* Press `F5` to start `probe-rs-debugger` as a debuggable server. | ||
* Switch to the VSCode instance of the probe-rs `vscode` repository. | ||
* Modify the `debug-example` entry in '.vscode/launch.json' file to point to your target project. | ||
* Press `F5` to __build and attach to the debuggable server instance of__ `probe-rs-debugger`. VSCode will open another VS Code window. In that window: | ||
* Switch to the VSCode instance of the probe-rs `vscode` repository. | ||
* Modify the `debug-example` entry in '.vscode/launch.json' file to point to | ||
your target project. | ||
* Press `F5` to __build and attach to the debuggable server instance of__ | ||
`probe-rs-debugger`. VSCode will open another VS Code window. In that | ||
window: | ||
* You will see the `debug-example` project you just configured. | ||
* Select the debug environment `probe_rs Server Test`. | ||
* Press `F5` to start debugging. | ||
|
||
## Generating and releasing the extension | ||
Because the extension is still regarded as being in 'Alpha' state, it is NOT being released on the Microsoft Visual Studio Code Extension Marketplace. The only way to get access to updated versions of the extension is to build it yourself, or to download it from the [GitHub release page](#development-setup) for this extension. | ||
|
||
Because the extension is still regarded as being in 'Alpha' state, it is NOT | ||
being released on the Microsoft Visual Studio Code Extension Marketplace. The | ||
only way to get access to updated versions of the extension is to build it | ||
yourself, or to download it from the [GitHub release page](#development-setup) | ||
for this extension. | ||
|
||
### Build the extension | ||
Building the extension refers to the process that generates the installable `.vsix` package. | ||
* Follow the instructions to [setup your development environment](#development-setup). | ||
|
||
Building the extension refers to the process that generates the installable | ||
`.vsix` package. | ||
|
||
* Follow the instructions to [setup your development | ||
environment](#development-setup). | ||
* In a terminal window, execute the following command: | ||
``` | ||
yarn probe-rs:package | ||
``` | ||
|
||
yarn probe-rs:package | ||
|
||
* This will generate a .vsix file in the root of the repository | ||
|
||
### Updating the GitHub release page | ||
* Whenever any PR has been merged, you need to create a new release and upload the `.vsix` in the repository's [release page](https://github.com/probe-rs/vscode/releases). | ||
* This means that every PR needs to update the version number appropriately in the `package.json` file. Please [see the Semantic Versioning guidelines](https://semver.org/). | ||
|
||
* Whenever any PR has been merged, you need to create a new release and upload | ||
the `.vsix` in the repository's [release | ||
page](https://github.com/probe-rs/vscode/releases). | ||
* This means that every PR needs to update the version number appropriately in | ||
the `package.json` file. Please [see the Semantic Versioning | ||
guidelines](https://semver.org/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.