Skip to content

Commit

Permalink
Included .vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeTravelPenguin committed Jan 16, 2024
1 parent c44e60c commit 883309e
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,5 @@ pyrightconfig.json

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

.vscode
.idea
bundles
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python (Poetry): Current File",
"type": "python",
"request": "launch",
"module": "${input:PythonModuleName}",
"console": "integratedTerminal",
"justMyCode": true
}
],
"inputs": [
{
"id": "PythonModuleName",
"type": "command",
"command": "extension.commandvariable.transform",
"args": {
"text": "${command:extension.commandvariable.file.relativeFileDotsNoExtension}",
"find": "src\\.(.*)",
"replace": "$1",
}
}
]
}
16 changes: 16 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"statusbar_command.commands": [
{
"id": "poetry_run_file",
"name": "Python (Poetry): Run file",
"text": "$(run-all) Run file (Poetry)",
"tooltip": "workspace settings",
"alignment": "left",
"command": "workbench.action.tasks.runTask",
"arguments": [
"PythonPoetryCurrentFile"
],
"color": "#AFD5FB",
},
],
}
36 changes: 36 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "PythonPoetryCurrentFile",
"type": "process",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"command": "poetry",
"args": [
"run",
"python",
"-m",
"${input:PythonModuleName}"
]
}
],
"inputs": [
{
"id": "PythonModuleName",
"type": "command",
"command": "extension.commandvariable.transform",
"args": {
"text": "${command:extension.commandvariable.file.relativeFileDotsNoExtension}",
"find": "src\\.(.*)",
"replace": "$1",
}
}
]
}

0 comments on commit 883309e

Please sign in to comment.