MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / enableSshTargetsView

Function enableSshTargetsView

Extension/src/Debugger/extension.ts:149–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149async 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
161async function disableSshTargetsView(): Promise<void> {
162 await vscode.commands.executeCommand('setContext', 'cpptools.enableSshTargetsView', false);

Callers 2

initializeFunction · 0.85

Calls 2

getSshConfigurationFilesFunction · 0.90
onMethod · 0.80

Tested by

no test coverage detected