-
Notifications
You must be signed in to change notification settings - Fork 0
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
c44e60c
commit 883309e
Showing
4 changed files
with
77 additions
and
1 deletion.
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,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", | ||
} | ||
} | ||
] | ||
} |
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,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", | ||
}, | ||
], | ||
} |
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,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", | ||
} | ||
} | ||
] | ||
} |