Skip to content

Commit 9e07b93

Browse files
[Improve] Remove , from the arg string in command signature.
This commit removes the ending `, ` from the arg dictionary in the command signature.
1 parent d95aef8 commit 9e07b93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/commands_browser_core_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def on_select(self, idx, event, commands_data):
111111
arg_name = arg['name']
112112
arg_string = arg_string + f'"{arg_name}": , '
113113

114-
final_string = final_string + f'"{command_data[0]}", ' + "{ " + arg_string + " })"
114+
final_string = final_string + f'"{command_data[0]}", ' + "{ " + arg_string.rstrip(", ") + " })"
115115
sublime.set_clipboard(final_string)
116116
sublime.status_message("Command signature copied to clipboard.")
117117

0 commit comments

Comments
 (0)