File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { NodeGraphFeature } from './feature/NodeGraphFeature';
1616import { PDKFeature } from './feature/PDKFeature' ;
1717import { PuppetResourceFeature } from './feature/PuppetResourceFeature' ;
1818import { ILogger } from './logging' ;
19+ import { ProtocolType , ConnectionType } from './interfaces' ;
1920
2021var connManager : ConnectionManager ;
2122const langID = 'puppet' ; // don't change this
@@ -76,6 +77,14 @@ function checkForLegacySettings() {
7677}
7778
7879function checkInstallDirectory ( configSettings : ConnectionConfiguration , logger : ILogger ) {
80+ if ( configSettings . protocol === ProtocolType . TCP ) {
81+ if ( configSettings . type === ConnectionType . Remote ) {
82+ // Return if we are connecting to a remote TCP LangServer
83+ return ;
84+ }
85+ }
86+
87+ // we want to check directory if STDIO or Local TCP
7988 if ( ! fs . existsSync ( configSettings . puppetBaseDir ) ) {
8089 showErrorMessage (
8190 `Could not find a valid Puppet installation at '${
You can’t perform that action at this time.
0 commit comments