Skip to content

Commit 1890732

Browse files
committed
fix: ProfileCodeLensProvider type
1 parent 0c27cc3 commit 1890732

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/vscode-js-profile-core/src/profileCodeLensProvider.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
ProviderResult,
1212
TextDocument,
1313
} from 'vscode';
14+
import { INode } from './common/model';
1415
import { DownloadFileProvider } from './download-file-provider';
1516
import { lowerCaseInsensitivePath } from './path';
1617
import { ProfileAnnotations } from './profileAnnotations';
@@ -20,7 +21,7 @@ import { ProfileAnnotations } from './profileAnnotations';
2021
*/
2122
export class ProfileCodeLensProvider implements CodeLensProvider {
2223
private readonly changeEmitter = new EventEmitter<void>();
23-
private lenses?: ProfileAnnotations;
24+
private lenses?: ProfileAnnotations<{}, INode>;
2425

2526
/**
2627
* @inheritdoc
@@ -31,7 +32,7 @@ export class ProfileCodeLensProvider implements CodeLensProvider {
3132
* Updates the set of lenses currently being displayed.
3233
*/
3334
// eslint-disable-next-line @typescript-eslint/no-explicit-any
34-
public registerLenses(lenses: ProfileAnnotations): Disposable {
35+
public registerLenses(lenses: ProfileAnnotations<{}, INode>): Disposable {
3536
commands.executeCommand('setContext', 'jsProfileVisualizer.hasCodeLenses', true);
3637
this.lenses = lenses;
3738

0 commit comments

Comments
 (0)