mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Replace more ...args: any[] with unknown
Follow up on #269213 Typing only change to make `args` type safer
This commit is contained in:
@@ -315,7 +315,7 @@ export class InlineChatController1 implements IEditorContribution {
|
||||
this._log('DISPOSED controller');
|
||||
}
|
||||
|
||||
private _log(message: string | Error, ...more: any[]): void {
|
||||
private _log(message: string | Error, ...more: unknown[]): void {
|
||||
if (message instanceof Error) {
|
||||
this._logService.error(message, ...more);
|
||||
} else {
|
||||
@@ -715,7 +715,7 @@ export class InlineChatController1 implements IEditorContribution {
|
||||
}
|
||||
if (e.kind === 'move') {
|
||||
assertType(this._session);
|
||||
const log: typeof this._log = (msg: string, ...args: any[]) => this._log('state=_showRequest) moving inline chat', msg, ...args);
|
||||
const log: typeof this._log = (msg: string, ...args: unknown[]) => this._log('state=_showRequest) moving inline chat', msg, ...args);
|
||||
|
||||
log('move was requested', e.target, e.range);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user