mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Merge pull request #211993 from microsoft/tyriar/pwsh5
Disable sending via CompletionCompleters for pwsh5
This commit is contained in:
commit
d4b07e1cb2
|
@ -203,7 +203,7 @@ function Send-Completions {
|
|||
# `[` is included here as namespace commands are not included in CompleteCommand(''),
|
||||
# additionally for some reason CompleteVariable('[') causes the prompt to clear and reprint
|
||||
# multiple times
|
||||
if ($completionPrefix.Contains(' ') -or $completionPrefix.Contains('[')) {
|
||||
if ($completionPrefix.Contains(' ') -or $completionPrefix.Contains('[') -or $PSVersionTable.PSVersion -lt "6.0") {
|
||||
$completions = TabExpansion2 -inputScript $completionPrefix -cursorColumn $cursorIndex
|
||||
if ($null -ne $completions.CompletionMatches) {
|
||||
$result += ";$($completions.ReplacementIndex);$($completions.ReplacementLength);$($cursorIndex);"
|
||||
|
|
Loading…
Reference in a new issue