Skip to content

Commit b7e45b9

Browse files
authored
Merge pull request #561 from jpogran/GH-552-warn-on-puppet-version-command-using-tcp
(WIP)(GH-552) Disallow Puppet version change with TCP Protocol
2 parents 98d1dfb + ab3711c commit b7e45b9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/feature/PuppetStatusBarFeature.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { ILogger } from "../logging";
66
import { ConnectionStatus } from '../interfaces';
77
import { PuppetCommandStrings } from '../messages';
88
import { IAggregateConfiguration } from "../configuration";
9+
import { ProtocolType } from "../settings";
910

1011
class PuppetStatusBarProvider {
1112
private statusBarItem: vscode.StatusBarItem;
@@ -80,7 +81,11 @@ class PuppetStatusBarProvider {
8081
() => { vscode.commands.executeCommand(PuppetCommandStrings.PuppetShowConnectionLogsCommandId); }),
8182
);
8283

83-
if (this.config.ruby.pdkPuppetVersions !== undefined && this.config.ruby.pdkPuppetVersions.length > 0) {
84+
if (
85+
this.config.ruby.pdkPuppetVersions !== undefined &&
86+
this.config.ruby.pdkPuppetVersions.length > 0 &&
87+
this.config.connection.protocol != ProtocolType.TCP
88+
) {
8489
// Add a static menu item to use the latest version
8590
menuItems.push(
8691
new PuppetConnectionMenuItem(

0 commit comments

Comments
 (0)