Skip to content

Commit

Permalink
Python launch config is deprecated (#1465)
Browse files Browse the repository at this point in the history
## Changes
`debugpy` is the new python debugger, and `python` launch config type is
deprecated -
https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy

Python extension already depends on it, but I'm still adding it as an
explicit dependency to our extension too


## Tests
Manual testing
  • Loading branch information
ilia-db authored Nov 25, 2024
1 parent 9db90f8 commit 1f1df4b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions packages/databricks-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,19 @@
}
}
}
},
{
"type": "debugpy",
"configurationAttributes": {
"launch": {
"properties": {
"databricks": {
"type": "boolean",
"description": "Setup databricks environment variables and globals."
}
}
}
}
}
],
"configuration": [
Expand Down Expand Up @@ -1041,6 +1054,7 @@
},
"extensionDependencies": [
"ms-python.python",
"ms-python.debugpy",
"ms-toolsai.jupyter",
"redhat.vscode-yaml"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/databricks-vscode/src/run/RunCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class RunCommands {
}
const config: DatabricksPythonDebugConfiguration = {
program: targetResource.fsPath,
type: "python",
type: "debugpy",
name: "Databricks Connect",
request: "launch",
databricks: true,
Expand Down

0 comments on commit 1f1df4b

Please sign in to comment.