@volar/language-core
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -28,4 +28,4 @@ import type { CodeInformation } from './types'; | ||
export declare function isSignatureHelpEnabled(info: CodeInformation): boolean; | ||
export declare function shouldReportDiagnostics(info: CodeInformation): boolean; | ||
export declare function shouldReportDiagnostics(info: CodeInformation, source: string | undefined, code: string | number | undefined): boolean; | ||
export declare function resolveRenameNewName(newName: string, info: CodeInformation): string; | ||
export declare function resolveRenameEditText(text: string, info: CodeInformation): string; |
@@ -115,5 +115,5 @@ "use strict"; | ||
// should... | ||
function shouldReportDiagnostics(info) { | ||
function shouldReportDiagnostics(info, source, code) { | ||
return typeof info.verification === 'object' | ||
? info.verification.shouldReport?.() ?? true | ||
? info.verification.shouldReport?.(source, code) ?? true | ||
: !!info.verification; | ||
@@ -120,0 +120,0 @@ } |
@@ -55,3 +55,3 @@ import type { Mapping } from '@volar/source-map'; | ||
verification?: boolean | { | ||
shouldReport?(): boolean; | ||
shouldReport?(source: string | undefined, code: string | number | undefined): boolean; | ||
}; | ||
@@ -58,0 +58,0 @@ /** virtual code is expected to support assisted completion */ |
{ | ||
"name": "@volar/language-core", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"license": "MIT", | ||
@@ -15,5 +15,5 @@ "files": [ | ||
"dependencies": { | ||
"@volar/source-map": "2.4.0" | ||
"@volar/source-map": "2.4.1" | ||
}, | ||
"gitHead": "7e98885cfe284451e655cf1c3954786b51aea2f8" | ||
"gitHead": "b920b6c4a3e4b2d8f46c676ea414e94c437cb5b7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27470
+ Added@volar/source-map@2.4.1(transitive)
- Removed@volar/source-map@2.4.0(transitive)
Updated@volar/source-map@2.4.1