Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithSwastik committed Dec 27, 2023
1 parent d76fd76 commit bb93957
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion examples/hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async def on_activate():
vscode.log(f"The Extension '{ext.name}' has started")


@ext.command(keybind="f8")
@ext.command()
async def hello_world(ctx):
return await ctx.show(vscode.InfoMessage(f"Hello World from {ext.display_name}"))

Expand Down
3 changes: 0 additions & 3 deletions examples/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@

@ext.command()
async def info(ctx):
vscode.window.show_info_message("This is an info message")
await ctx.show(vscode.InfoMessage("This is an info message"))


@ext.command()
async def warn(ctx):
vscode.window.show_warn_message("This is a warning message")
await ctx.show(vscode.WarningMessage("This is a warning message"))


@ext.command()
async def error(ctx):
vscode.window.show_error_message("This is an error message")
await ctx.show(vscode.ErrorMessage("This is an error message"))


Expand Down

0 comments on commit bb93957

Please # to comment.