-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
853cb16
commit 22a3635
Showing
3 changed files
with
75 additions
and
2 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,33 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "USB/IP Emulator", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--features", | ||
"provisioner,backend-dilithium2,backend-dilithium3,backend-dilithium5", | ||
"--bin=usbip-runner", | ||
], | ||
"filter": { | ||
"kind": "bin", | ||
} | ||
}, | ||
"preLaunchTask": "DelayedUSBIPAttach", | ||
"program": "${cargo:program}", | ||
"args": [ | ||
// "--ifs", | ||
// "${userHome}/nitrokey-usbip-ifs", | ||
"--user-presence", | ||
"interactive" | ||
], | ||
"cwd": "${workspaceFolder}/runners/usbip", | ||
} | ||
], | ||
} |
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,42 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
// This task waits for a few seconds before attaching | ||
// the newly-created USB/IP adapter | ||
"label": "DelayedUSBIPAttach", | ||
"type": "shell", | ||
"command": "sudo", | ||
"args": [ | ||
"${workspaceFolder}/runners/usbip/delayed-attach.sh" | ||
], | ||
"isBackground": true, | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "always", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": true | ||
}, | ||
// All this is needed so VSCode just lets this task run in the background. | ||
"problemMatcher": [ | ||
{ | ||
"pattern": [ | ||
{ | ||
"regexp": ".", | ||
"file": 1, | ||
"location": 2, | ||
"message": 3 | ||
} | ||
], | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": ".", | ||
"endsPattern": ".", | ||
} | ||
} | ||
], | ||
}, | ||
], | ||
} |