Skip to content

Commit b606504

Browse files
alexandairTylerLeonhardt
authored andcommitted
Fix an empty verbose message when importing an editor command (#844)
Change $Strings.EditorCommandRegistering to $Strings.EditorCommandImporting to be in sync with the key name in the Strings.psd1 file.
1 parent cd3bc53 commit b606504

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module/PowerShellEditorServices/Commands/Public/Import-EditorCommand.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function Import-EditorCommand {
115115
<# suppressOutput: #> $details.SuppressOutput,
116116
<# scriptBlock: #> $scriptBlock)
117117

118-
$PSCmdlet.WriteVerbose($Strings.EditorCommandRegistering -f $details.Name)
118+
$PSCmdlet.WriteVerbose($Strings.EditorCommandImporting -f $details.Name)
119119
$null = $psEditor.RegisterCommand($editorCommand)
120120

121121
if ($PassThru.IsPresent -and $editorCommand) {
@@ -141,4 +141,4 @@ if ($PSVersionTable.PSVersion.Major -ge 5) {
141141
[System.Management.Automation.CompletionResult]::new($PSItem, $PSItem, 'ParameterValue', $PSItem)
142142
}
143143
}
144-
}
144+
}

0 commit comments

Comments
 (0)