-
Notifications
You must be signed in to change notification settings - Fork 9
Read configuration from ssh_config #32
Comments
I have the same issue in #31. I'll give this a quick stab tonight. |
ssh-config is some js gobbledy-gook. It'll be very hard to cover edge cases. I'm going to time box (hours) pulling the fields automatically specifically for the Microsoft guide. I'm not sure how many other ways there are to skin this cat... I'm thinking of the following:
In the meantime let me know what you think of |
For the SSH config setting, I think it makes sense to put it under an experimental setting like that. I also think having everything for the jump host in one setting like that is fine, especially if that matches how you would set thing up on the command line. You can also set up a regex to validate the setting so it shows an error in the settings editor if it isn't formatted correctly (though the error message is often less than helpful because it just shows you the regex your setting fails to meet). I've also done a little bit of work on merging the display and screen settings in a similar manner so that you can also set a host for the display but haven't finished testing that yet. |
I actually went to having the three discrete fields. Since there were multiple logic paths to the jump connect it was silly to creat that macro field in code. However, I discovered quite a few bugs even with the limited surface here. I'll need to return to this early next week to bang out a few more kinks. I'd hold on reviewing it till then |
Using something like https://www.npmjs.com/package/ssh-config, we could read some settings such as the private key file so you don't have to set them again in vscode settings.
The text was updated successfully, but these errors were encountered: