File tree Expand file tree Collapse file tree
src/providers/diagnostics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import { getPackageInfo } from '#utils/npm'
77import { useActiveTextEditor , useDocumentText , watch } from 'reactive-vscode'
88import { languages } from 'vscode'
99import { displayName } from '../../generated-meta'
10- import { checkDeprecations } from './rules/deprecation'
10+ import { checkDeprecation } from './rules/deprecation'
1111
1212export interface NodeDiagnosticInfo extends Pick < Diagnostic , 'message' | 'severity' > {
1313 node : ValidNode
1414}
1515export type DiagnosticRule = ( dep : DependencyInfo , pkg : ResolvedPackument ) => NodeDiagnosticInfo | undefined
1616
1717const rules : DiagnosticRule [ ] = [
18- checkDeprecations ,
18+ checkDeprecation ,
1919]
2020
2121export function registerDiagnosticCollection ( mapping : Record < string , Extractor | undefined > ) {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { DiagnosticRule } from '..'
22import { extractVersion } from '#utils/version'
33import { DiagnosticSeverity } from 'vscode'
44
5- export const checkDeprecations : DiagnosticRule = ( dep , pkg ) => {
5+ export const checkDeprecation : DiagnosticRule = ( dep , pkg ) => {
66 const exactVersion = extractVersion ( dep . version )
77 const versionInfo = pkg . versions [ exactVersion ]
88
You can’t perform that action at this time.
0 commit comments