Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/PowerShellEditorServices/Extensions/EditorObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ public EditorObject(
/// Registers a new command in the editor.
/// </summary>
/// <param name="editorCommand">The EditorCommand to be registered.</param>
public void RegisterCommand(EditorCommand editorCommand)
/// <returns>True if the command is newly registered, false if the command already exists.</returns>
public bool RegisterCommand(EditorCommand editorCommand)
{
this.extensionService.RegisterCommand(editorCommand);
return this.extensionService.RegisterCommand(editorCommand);
}

/// <summary>
Expand Down