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

Function setIntelliSenseProgress

Extension/src/common.ts:294–307  ·  view source on GitHub ↗
(progress: number)

Source from the content-addressed store, hash-verified

292}
293
294export function setIntelliSenseProgress(progress: number): void {
295 if (extensionContext && getIntelliSenseProgress() < progress) {
296 void extensionContext.globalState.update(intelliSenseProgressStr, progress);
297 const telemetryProperties: Record<string, string> = {};
298 let progressName: string | undefined;
299 switch (progress) {
300 case progressIntelliSenseNoSquiggles: progressName = "IntelliSense no squiggles"; break;
301 }
302 if (progressName) {
303 telemetryProperties.progress = progressName;
304 }
305 Telemetry.logDebuggerEvent("progress", telemetryProperties);
306 }
307}
308
309export function getProgressDebuggerStarted(): number { return progressDebuggerStarted; } // Debugger initialization was started.
310export function getProgressDebuggerSuccess(): number { return progressDebuggerSuccess; } // Debugger was successfully initialized.

Callers

nothing calls this directly

Calls 2

getIntelliSenseProgressFunction · 0.85
updateMethod · 0.80

Tested by

no test coverage detected