Skip to content

Commit

Permalink
Use the get_plugin() method please
Browse files Browse the repository at this point in the history
  • Loading branch information
sambarza committed Nov 3, 2024
1 parent f9c03b8 commit 890e975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions cc-vscode-debugpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
# This is the fixed port exposed in docker-compose.yml
LISTENING_PORT = 5678

# Plugin name, used to load settings
PLUGIN_NAME = "cc_vscode_debugpy"


class MySettings(BaseModel):
listen_on_bootstrap: bool = Field(
Expand All @@ -33,7 +30,7 @@ def settings_schema():

@hook
def before_cat_bootstrap(cat):
settings = cat.mad_hatter.plugins[PLUGIN_NAME].load_settings()
settings = cat.mad_hatter.get_plugin().load_settings()

if listen_on_bootstrap(settings) or debug_bootstrap(settings):
try:
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Debug Server for VSCode",
"version": "0.0.9",
"version": "0.0.10",
"description": "Visual Studio Code debug server - How to use: https://github.com/sambarza/cc-vscode-debugpy",
"author_name": "[email protected]",
"author_url": "https://github.com/sambarza",
Expand Down

0 comments on commit 890e975

Please sign in to comment.