mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Python: add debug based on location snippet
This commit is contained in:
11
python/.vscode/ql.code-snippets
vendored
11
python/.vscode/ql.code-snippets
vendored
@@ -25,6 +25,17 @@
|
|||||||
"description": "has relative path",
|
"description": "has relative path",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
"debug based on location": {
|
||||||
|
"scope": "ql",
|
||||||
|
"prefix": "debug based on location",
|
||||||
|
"body": [
|
||||||
|
"$1.getLocation().getFile().getShortName() = \"$2\" and",
|
||||||
|
"$1.getLocation().getStartLine() = $3 and",
|
||||||
|
],
|
||||||
|
"description": "debug based on location",
|
||||||
|
},
|
||||||
|
|
||||||
"Exists": {
|
"Exists": {
|
||||||
"scope": "ql",
|
"scope": "ql",
|
||||||
"prefix": "exists",
|
"prefix": "exists",
|
||||||
|
|||||||
Reference in New Issue
Block a user