From 5759254c1019a930216f8f9ea1df20c46905e9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Nikoli=C4=87?= Date: Sun, 6 Jan 2019 15:15:30 +0100 Subject: [PATCH] Fix an empty verbose message when importing an editor command Change $Strings.EditorCommandRegistering to $Strings.EditorCommandImporting to be in sync with the key name in the Strings.psd1 file. --- .../Commands/Public/Import-EditorCommand.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/PowerShellEditorServices/Commands/Public/Import-EditorCommand.ps1 b/module/PowerShellEditorServices/Commands/Public/Import-EditorCommand.ps1 index 45668d38b..9ddec5021 100644 --- a/module/PowerShellEditorServices/Commands/Public/Import-EditorCommand.ps1 +++ b/module/PowerShellEditorServices/Commands/Public/Import-EditorCommand.ps1 @@ -115,7 +115,7 @@ function Import-EditorCommand { <# suppressOutput: #> $details.SuppressOutput, <# scriptBlock: #> $scriptBlock) - $PSCmdlet.WriteVerbose($Strings.EditorCommandRegistering -f $details.Name) + $PSCmdlet.WriteVerbose($Strings.EditorCommandImporting -f $details.Name) $null = $psEditor.RegisterCommand($editorCommand) if ($PassThru.IsPresent -and $editorCommand) { @@ -141,4 +141,4 @@ if ($PSVersionTable.PSVersion.Major -ge 5) { [System.Management.Automation.CompletionResult]::new($PSItem, $PSItem, 'ParameterValue', $PSItem) } } -} \ No newline at end of file +}