-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some files for debugging via VSCode #604
Some files for debugging via VSCode #604
Conversation
not sure about this one. i use nvim myself, but even if i would use vscode, i would prefer not to have stuff injected into my project or get pushed by mistake. |
I've relocated the vscode files into the docs directory, although I'm not sure how to integrate them into Jekyl since I don't have ruby installed. For the readme I added a small development section at the bottom, but I wasn't sure if that should be in the Contributing page instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you put the vscode files in the right place.
the docs, you need to modify the md files (content and nav md files) which are used
- in the github.io site as is
- used to generate the full readme md
.gitignore
Outdated
@@ -9,3 +9,4 @@ dump.rdb | |||
/rs*.sh | |||
/docs/_site | |||
/core | |||
/.vscode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we can remove this entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should now be done
README.md
Outdated
@@ -113,6 +113,7 @@ | |||
* [Roadmap](#roadmap) | |||
* [Editor Support](#editor-support) | |||
* [Contributing](.github/CONTRIBUTING.md) | |||
* [Development](#development) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a generated file. you can look at the doc folder, and you will see a sub folder with templates for the nav and content md files.
so this goes to the nav.
also, we should not add a new section, instead lets use the Editor Support section that already exists and talks about vim.
|
||
### VSCode | ||
|
||
For debugging purposes there are some example .vscode files located within the [docs/vscode-example](./docs/vscode-example) directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!
README.md
Outdated
@@ -3477,6 +3478,32 @@ You can view the future development items list in the [github project issues](ht | |||
## Contributing | |||
See [contributing guide](.github/CONTRIBUTING.md) | |||
|
|||
<a name="development"></a> | |||
## Development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets move this whole thing under 'editor support' and maybe create sub section for vim and vscode (vim already exists).
Codecov Report
@@ Coverage Diff @@
## 0.35.7 #604 +/- ##
===========================================
- Coverage 93.51% 67.89% -25.63%
===========================================
Files 98 98
Lines 19390 19624 +234
===========================================
- Hits 18132 13323 -4809
- Misses 1258 6301 +5043
Continue to review full report at Codecov.
|
@grbd just want to make sure you saw the comments in this PR |
@grbd friendly ping :) |
Ok I think I've resolved all the above now |
"clean" | ||
] | ||
}, | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll change this one to use the cargo-make formatter task.
it comes with built in support to auto install rustfmt
### Rust Format | ||
|
||
After making changes to the code, rustfmt can be used to automatically reformat the code within the repository | ||
``` | ||
# To install | ||
rustup component add rustfmt | ||
# To run on the cargo project | ||
cargo fmt | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll remove this one as cargo make comes with built in formatting task that auto installs it for you
{ | ||
"label": "run the tests", | ||
"detail": "Run the tests", | ||
"type": "process", | ||
"group": "build", | ||
"command": "cargo", | ||
"args": [ | ||
"test" | ||
] | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll also change this one to use the cargo make test which knows to run multi phase tests (tests for single thread + multi thread + custom tasks for tests)
thanks @grbd |
Ok, the bit I added about using cargo fmt |
@grbd thanks for the PR. i'm merging it and i'll make few changes as i commented on the files themselves. |
I've added some files for debugging under Visual Studio Code
This should allow for stepping through the code / breakpoints etc
I'd recommend the following to use it