MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / onExpandSelection

Function onExpandSelection

Extension/src/LanguageServer/extension.ts:802–808  ·  view source on GitHub ↗
(r: Range)

Source from the content-addressed store, hash-verified

800}
801
802function onExpandSelection(r: Range) {
803 const activeTextEditor: vscode.TextEditor | undefined = vscode.window.activeTextEditor;
804 if (activeTextEditor) {
805 activeTextEditor.selection = new vscode.Selection(new vscode.Position(r.start.line, r.start.character), new vscode.Position(r.end.line, r.end.character));
806 telemetry.logLanguageServerEvent('ExpandSelection');
807 }
808}
809
810async function onAddToIncludePath(path: string): Promise<void> {
811 if (isFolderOpen()) {

Callers 1

registerCommandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected