We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3313968 + 1b3a8ed commit 78e2454Copy full SHA for 78e2454
src/PowerShellEditorServices/Extensions/EditorObject.cs
@@ -58,9 +58,10 @@ public EditorObject(
58
/// Registers a new command in the editor.
59
/// </summary>
60
/// <param name="editorCommand">The EditorCommand to be registered.</param>
61
- public void RegisterCommand(EditorCommand editorCommand)
+ /// <returns>True if the command is newly registered, false if the command already exists.</returns>
62
+ public bool RegisterCommand(EditorCommand editorCommand)
63
{
- this.extensionService.RegisterCommand(editorCommand);
64
+ return this.extensionService.RegisterCommand(editorCommand);
65
}
66
67
/// <summary>
0 commit comments