diff --git a/src/PowerShellEditorServices/Extensions/EditorObject.cs b/src/PowerShellEditorServices/Extensions/EditorObject.cs index b5947ae6e..0a8c3810a 100644 --- a/src/PowerShellEditorServices/Extensions/EditorObject.cs +++ b/src/PowerShellEditorServices/Extensions/EditorObject.cs @@ -58,9 +58,10 @@ public EditorObject( /// Registers a new command in the editor. /// /// The EditorCommand to be registered. - public void RegisterCommand(EditorCommand editorCommand) + /// True if the command is newly registered, false if the command already exists. + public bool RegisterCommand(EditorCommand editorCommand) { - this.extensionService.RegisterCommand(editorCommand); + return this.extensionService.RegisterCommand(editorCommand); } ///