Skip to content

Commit 5cb7784

Browse files
committed
test: fix
1 parent 0e77278 commit 5cb7784

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/diagnostics/context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { PackageInfo } from '#utils/api/package'
22
import type { Engines } from 'fast-npm-meta'
33
import type { DiagnosticContext } from '../../src/providers/diagnostics'
44
import { resolveDependencySpec } from '#utils/dependency'
5+
import { resolveExactVersion } from '#utils/package'
56
import { Uri } from 'vscode'
67

78
interface CreateContextOptions {
@@ -30,7 +31,7 @@ export function createContext(options: CreateContextOptions): DiagnosticContext
3031
resolvedName,
3132
resolvedSpec,
3233
resolvedProtocol,
33-
resolvedVersion: async () => '',
34+
resolvedVersion: async () => resolveExactVersion(pkg, resolvedSpec),
3435
packageInfo: async () => (pkg),
3536
}
3637
return { uri: Uri.file('package.json'), dep, pkg }

0 commit comments

Comments
 (0)