Skip to content

Commit

Permalink
Merge pull request #28 from thedropbears/vscode
Browse files Browse the repository at this point in the history
Add VSCode config
  • Loading branch information
james-ward authored Jan 14, 2024
2 parents f5a2551 + 42678a3 commit aa36695
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"charliermarsh.ruff"
]
}
39 changes: 39 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
// 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": [
{
"name": "RobotPy: Simulate",
"type": "python",
"request": "launch",
"module": "robotpy",
"args": [
"sim"
]
},
{
"name": "RobotPy: Test",
"type": "python",
"request": "launch",
"module": "robotpy",
"args": [
"test"
]
},
{
"name": "Python: Attach to roboRIO",
"type": "python",
"request": "attach",
"port": 5678,
"host": "10.47.74.2",
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
]
}
]
}
47 changes: 47 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "deploy with netconsole",
"type": "process",
"group": "build",
"command": "${command:python.interpreterPath}",
"args": [
"-m",
"robotpy",
"deploy",
"--nc"
]
},
{
"label": "deploy",
"type": "process",
"group":{
"kind": "build",
"isDefault": true
},
"command": "${command:python.interpreterPath}",
"args": [
"-m",
"robotpy",
"deploy"
]
},
{
"label": "test",
"type": "process",
"group": {
"kind": "test",
"isDefault": true
},
"command": "${command:python.interpreterPath}",
"args": [
"-m",
"robotpy",
"test"
]
}
]
}

0 comments on commit aa36695

Please sign in to comment.