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

Function showHostKeyConfirmation

Extension/src/SSH/sshCommandRunner.ts:113–123  ·  view source on GitHub ↗
(
    host: string,
    fingerprint: string,
    cancelToken?: vscode.CancellationToken
)

Source from the content-addressed store, hash-verified

111const continueConfirmationPlaceholder: string = localize('ssh.continue.confirmation.placeholder', 'Are you sure you want to continue?');
112
113export async function showHostKeyConfirmation(
114 host: string,
115 fingerprint: string,
116 cancelToken?: vscode.CancellationToken
117): Promise<string | undefined> {
118 return showConfirmationPicker(
119 localize('ssh.host.key.confirmation.title', '"{0}" has fingerprint "{1}".', host, fingerprint),
120 continueConfirmationPlaceholder,
121 cancelToken
122 );
123}
124
125export async function showDifferingHostConfirmation(
126 message: string,

Callers

nothing calls this directly

Calls 1

showConfirmationPickerFunction · 0.85

Tested by

no test coverage detected