Socket
Socket
Sign inDemoInstall

@volar/language-core

Package Overview
Dependencies
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/language-core - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

2

lib/editorFeatures.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc