()
| 147 | } |
| 148 | |
| 149 | async function enableSshTargetsView(): Promise<void> { |
| 150 | if (sshTargetsViewEnabled || sshTargetsViewSetting === 'disabled') { |
| 151 | return; |
| 152 | } |
| 153 | await vscode.commands.executeCommand('setContext', 'cpptools.enableSshTargetsView', true); |
| 154 | sshConfigWatcher = chokidar.watch(getSshConfigurationFiles(), { ignoreInitial: true }) |
| 155 | .on('add', () => void vscode.commands.executeCommand(refreshCppSshTargetsViewCmd)) |
| 156 | .on('change', () => void vscode.commands.executeCommand(refreshCppSshTargetsViewCmd)) |
| 157 | .on('unlink', () => void vscode.commands.executeCommand(refreshCppSshTargetsViewCmd)); |
| 158 | sshTargetsViewEnabled = true; |
| 159 | } |
| 160 | |
| 161 | async function disableSshTargetsView(): Promise<void> { |
| 162 | await vscode.commands.executeCommand('setContext', 'cpptools.enableSshTargetsView', false); |
no test coverage detected