-
Notifications
You must be signed in to change notification settings - Fork 526
Expand file tree
/
Copy pathindex.ts
More file actions
34 lines (30 loc) · 1.3 KB
/
index.ts
File metadata and controls
34 lines (30 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { ExtensionManager } from '@cmt/extension';
import { CMakeBuildTool, CMakeConfigureTool, CMakeGetErrorsTool } from './tools';
/**
* Registers CMake Copilot tools for use with VS Code's Language Model API
*
* @param context Extension context for managing disposables
* @param extensionManager The CMake Tools extension manager instance
*/
export function registerCopilotTools(
context: vscode.ExtensionContext,
extensionManager: ExtensionManager
): void {
// Register the build tool
context.subscriptions.push(
vscode.lm.registerTool('cmake_build', new CMakeBuildTool(extensionManager))
);
// Register the configure tool
context.subscriptions.push(
vscode.lm.registerTool('cmake_configure', new CMakeConfigureTool(extensionManager))
);
// Register the get errors tool
context.subscriptions.push(
vscode.lm.registerTool('cmake_get_errors', new CMakeGetErrorsTool())
);
}