mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-19 18:14:50 +01:00
debt - reduce some explicit any use (#251182)
<!-- Thank you for submitting a Pull Request. Please: * Read our Pull Request guidelines: https://github.com/microsoft/vscode/wiki/How-to-Contribute#pull-requests * Associate an issue with the Pull Request. * Ensure that the code is up-to-date with the `main` branch. * Include a description of the proposed changes and how to test them. -->
This commit is contained in:
@@ -220,7 +220,7 @@ export class ExtHostLanguageModelTools implements ExtHostLanguageModelToolsShape
|
||||
return model;
|
||||
}
|
||||
|
||||
async $prepareToolInvocation(toolId: string, input: any, token: CancellationToken): Promise<IPreparedToolInvocation | undefined> {
|
||||
async $prepareToolInvocation(toolId: string, input: unknown, token: CancellationToken): Promise<IPreparedToolInvocation | undefined> {
|
||||
const item = this._registeredTools.get(toolId);
|
||||
if (!item) {
|
||||
throw new Error(`Unknown tool ${toolId}`);
|
||||
|
||||
Reference in New Issue
Block a user