Skip to content

Commit

Permalink
Get the file path and respond to initialization requests (#1647)
Browse files Browse the repository at this point in the history
* trying to use dap-rs intially for server0

* creating TCP connection for the server to attach

* connecting to server and client in dap.rs; not fully successfull yet

* can print result now

* working for second request. still need cleanup.

* got the second request to work?
-_-

* pretty printing

* remove the loopfor server.run and clean up

* clean up a bit; remove unused variables

* launch the extension

* convert the adapter to use stdin/stdout

* revert launch.json

* Make adapter agnostic to read/write operations

* adding optional path argument

* switch to either run with stdin/stdout or tcp

* switch based on the flag to either use stdin/stdout or rather switch to tcp

* add the needed dependencies for argh

* remove unused imports

* proper error handling

* run cargo clippy and fix the linting

* delete symlink committed by mistake

* implement better error handling

* add docs for error variants

* add commands in the extension.js for printing logging messages to track the status of the extension attaching

* can print as well as invoke the adpater, need to figure outpassing file as an argument

* get file name from user

* can successfully take file as input from the user

* log when extension activates

* change it so that it does not ask for file name twice

* try it with multi-session

* it can attach to vscode currently in multi session

* work on getting file path and intialization.

* changes to PR for better readability

* change the release for dap-rs

* Create README.md

* Update README.md

* Update README.md

* clippy
  • Loading branch information
Basant-khalil authored Aug 10, 2023
1 parent db10baa commit 95206fa
Show file tree
Hide file tree
Showing 7 changed files with 467 additions and 71 deletions.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "cider-dap",
"request": "launch",
"name": "Launch Program (Multi Session)",
"program": "${file}",
"stopOnEntry": true,
},
{
"type": "cider-dap",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/Program"
},
{
"name": "Python: Current File",
"type": "python",
Expand Down
146 changes: 95 additions & 51 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 95206fa

Please sign in to comment.