Skip to content

Commit f8fb273

Browse files
committed
(maint) Fix incorrect tcp protocol detection
1 parent c7d66d1 commit f8fb273

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## [Unreleased]
88

9+
### Added
10+
11+
- ([GH-630](https://github.com/puppetlabs/puppet-vscode/issues/630)) Add Puppet ToolBar
12+
- ([GH-631](https://github.com/puppetlabs/puppet-vscode/issues/631)) Add Puppet Facts View
13+
914
## [0.25.2] - 2020-03-27
1015

1116
### Fixed

src/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class AggregateConfiguration implements IAggregateConfiguration {
143143
if (settings.editorService.tcp.address === '127.0.0.1' ||
144144
settings.editorService.tcp.address === 'localhost' ||
145145
settings.editorService.tcp.address === '') {
146-
return ConnectionType.Remote;
146+
return ConnectionType.Local;
147147
} else {
148148
return ConnectionType.Remote;
149149
}

src/handlers/tcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class TcpConnectionHandler extends ConnectionHandler {
7676
this.config.workspace.editorService.tcp.address === 'localhost' ||
7777
this.config.workspace.editorService.tcp.address === ''
7878
) {
79-
return ConnectionType.Remote;
79+
return ConnectionType.Local;
8080
} else {
8181
return ConnectionType.Remote;
8282
}

0 commit comments

Comments
 (0)