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

Method onAddConfigConfirm

Extension/ui/settings.ts:153–169  ·  view source on GitHub ↗
(request: boolean)

Source from the content-addressed store, hash-verified

151 }
152
153 private onAddConfigConfirm(request: boolean): void {
154 this.showElement(elementId.addConfigInputDiv, false);
155 this.showElement(elementId.addConfigDiv, true);
156
157 // If request is yes, send message to create new config
158 if (request) {
159 const el: HTMLInputElement = <HTMLInputElement>document.getElementById(elementId.addConfigName);
160 if (el.value !== undefined && el.value !== "") {
161 this.vsCodeApi.postMessage({
162 command: "addConfig",
163 name: el.value
164 });
165
166 el.value = "";
167 }
168 }
169 }
170
171 private onConfigNameChanged(): void {
172 if (this.updating) {

Callers

nothing calls this directly

Calls 2

showElementMethod · 0.95
postMessageMethod · 0.80

Tested by

no test coverage detected