File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
extensions/ql-vscode/src/common/vscode Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ export function createVSCodeCommandManager<
4040 * @param logger The logger to use for error reporting.
4141 * @param telemetry The telemetry listener to use for error reporting.
4242 */
43- export function registerCommandWithErrorHandling (
43+ export function registerCommandWithErrorHandling < S extends unknown [ ] , T > (
4444 commandId : string ,
45- task : ( ...args : any [ ] ) => Promise < any > ,
45+ task : ( ...args : S ) => Promise < T > ,
4646 logger : NotificationLogger = extLogger ,
4747 telemetry : AppTelemetry | undefined = telemetryListener ,
4848) : Disposable {
49- return commands . registerCommand ( commandId , async ( ...args : any [ ] ) => {
49+ return commands . registerCommand ( commandId , async ( ...args : S ) => {
5050 const startTime = Date . now ( ) ;
5151 let error : Error | undefined ;
5252
You can’t perform that action at this time.
0 commit comments