From a90609aa48f251042e2a7d8c792392a4ff73b777 Mon Sep 17 00:00:00 2001 From: Kelvin Schoofs Date: Wed, 16 Dec 2020 23:32:26 +0100 Subject: [PATCH] Fix typo in JSDoc for FileSystemConfig.terminalCommand --- src/fileSystemConfig.ts | 2 +- webview/src/ConfigEditor/fields.tsx | 2 +- webview/src/types/fileSystemConfig.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fileSystemConfig.ts b/src/fileSystemConfig.ts index b66daf1..35b5dfd 100644 --- a/src/fileSystemConfig.ts +++ b/src/fileSystemConfig.ts @@ -96,7 +96,7 @@ export interface FileSystemConfig extends ConnectConfig { sftpCommand?: string; /** Whether to use a sudo shell (and for which user) to run the sftpCommand in (sftpCommand defaults to /usr/lib/openssh/sftp-server if missing) */ sftpSudo?: string | boolean; - /** The command(s) to run when a new SSH terminals gets created. Defaults to `$SHELL`. Internally the command `cd ...` is run first */ + /** The command(s) to run when a new SSH terminal gets created. Defaults to `$SHELL`. Internally the command `cd ...` is run first */ terminalCommand?: string | string[]; /** The filemode to assign to created files */ newFileMode?: number | string; diff --git a/webview/src/ConfigEditor/fields.tsx b/webview/src/ConfigEditor/fields.tsx index d8ed825..f0587a1 100644 --- a/webview/src/ConfigEditor/fields.tsx +++ b/webview/src/ConfigEditor/fields.tsx @@ -124,7 +124,7 @@ export function sftpSudo(config: FileSystemConfig, onChange: FSCChanged<'sftpSud export function terminalCommand(config: FileSystemConfig, onChange: FSCChanged<'terminalCommand'>): React.ReactElement { const callback = (newValue?: string) => onChange('terminalCommand', (!newValue || newValue === '$SHELL') ? undefined : newValue); - const description = 'The command(s) to run when a new SSH terminals gets created. Defaults to `$SHELL`. Internally the command `cd ...` is run first'; + const description = 'The command(s) to run when a new SSH terminal gets created. Defaults to `$SHELL`. Internally the command `cd ...` is run first'; const values = ['$SHELL', '/usr/bin/bash', '/usr/bin/sh']; let value = config.terminalCommand === '$SHELL' ? '' : config.terminalCommand || ''; if (Array.isArray(value)) value = value.join('; '); diff --git a/webview/src/types/fileSystemConfig.ts b/webview/src/types/fileSystemConfig.ts index 5fa3686..55eaaff 100644 --- a/webview/src/types/fileSystemConfig.ts +++ b/webview/src/types/fileSystemConfig.ts @@ -96,7 +96,7 @@ export interface FileSystemConfig extends ConnectConfig { sftpCommand?: string; /** Whether to use a sudo shell (and for which user) to run the sftpCommand in (sftpCommand defaults to /usr/lib/openssh/sftp-server if missing) */ sftpSudo?: string | boolean; - /** The command(s) to run when a new SSH terminals gets created. Defaults to `$SHELL`. Internally the command `cd ...` is run first */ + /** The command(s) to run when a new SSH terminal gets created. Defaults to `$SHELL`. Internally the command `cd ...` is run first */ terminalCommand?: string | string[]; /** The filemode to assign to created files */ newFileMode?: number | string;