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

Function createClient

Extension/src/LanguageServer/client.ts:871–883  ·  view source on GitHub ↗
(workspaceFolder?: vscode.WorkspaceFolder)

Source from the content-addressed store, hash-verified

869}
870
871export function createClient(workspaceFolder?: vscode.WorkspaceFolder): Client {
872 if (isInstrumentationEnabled) {
873 instrument(vscode.languages, { name: "languages" });
874 instrument(vscode.window, { name: "window" });
875 instrument(vscode.workspace, { name: "workspace" });
876 instrument(vscode.commands, { name: "commands" });
877 instrument(vscode.debug, { name: "debug" });
878 instrument(vscode.env, { name: "env" });
879 instrument(vscode.extensions, { name: "extensions" });
880 return instrument(new DefaultClient(workspaceFolder), { ignore: ["enqueue", "onInterval", "logTelemetry"] });
881 }
882 return new DefaultClient(workspaceFolder);
883}
884
885export function createNullClient(): Client {
886 return new NullClient();

Callers

nothing calls this directly

Calls 1

instrumentFunction · 0.90

Tested by

no test coverage detected