Skip to content

Commit

Permalink
Small bit of backwards compat for a typo in the SSH config
Browse files Browse the repository at this point in the history
  • Loading branch information
sedwards2009 committed Aug 24, 2024
1 parent 9fa1be7 commit 721e4bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/SSHSessionEditor/src/SSHSessionEditorExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ interface SSHSessionConfiguration extends SessionConfiguration {
host?: string;
port?: number;
username?: string;
authenicationMethod?: AuthenticationMethod; // TODO: remove this it has a typo.
authenticationMethod?: AuthenticationMethod;
keyFilePath?: string;
verboseLogging?: boolean;
Expand Down Expand Up @@ -59,6 +60,10 @@ class EditorUi {
this.#sessionEditorBase = sessionEditorBase;
this.#config = <SSHSessionConfiguration> sessionEditorBase.sessionConfiguration;

// Move the typo to the correct field.
if (this.#config.authenticationMethod == null) {
this.#config.authenticationMethod = this.#config.authenicationMethod;
}
this.#config.port = this.#config.port ?? 22;
this.#config.host = this.#config.host ?? "";

Expand Down

0 comments on commit 721e4bb

Please sign in to comment.