Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@volar/language-core

Package Overview
Dependencies
Maintainers
1
Versions
234
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.2.0-alpha.8 to 2.2.0-alpha.9

18

lib/editorFeatures.js

@@ -19,3 +19,3 @@ "use strict";

? info.semantic.shouldHighlight?.() ?? true
: info.semantic;
: !!info.semantic;
}

@@ -52,23 +52,23 @@ exports.isSemanticTokensEnabled = isSemanticTokensEnabled;

function isSymbolsEnabled(info) {
return info.structure;
return !!info.structure;
}
exports.isSymbolsEnabled = isSymbolsEnabled;
function isFoldingRangesEnabled(info) {
return info.structure;
return !!info.structure;
}
exports.isFoldingRangesEnabled = isFoldingRangesEnabled;
function isSelectionRangesEnabled(info) {
return info.structure;
return !!info.structure;
}
exports.isSelectionRangesEnabled = isSelectionRangesEnabled;
function isLinkedEditingEnabled(info) {
return info.structure;
return !!info.structure;
}
exports.isLinkedEditingEnabled = isLinkedEditingEnabled;
function isColorEnabled(info) {
return info.structure;
return !!info.structure;
}
exports.isColorEnabled = isColorEnabled;
function isDocumentLinkEnabled(info) {
return info.structure;
return !!info.structure;
}

@@ -85,3 +85,3 @@ exports.isDocumentLinkEnabled = isDocumentLinkEnabled;

function isFormattingEnabled(info) {
return info.format;
return !!info.format;
}

@@ -105,3 +105,3 @@ exports.isFormattingEnabled = isFormattingEnabled;

? info.verification.shouldReport?.() ?? true
: info.verification;
: !!info.verification;
}

@@ -108,0 +108,0 @@ exports.shouldReportDiagnostics = shouldReportDiagnostics;

@@ -49,7 +49,7 @@ import type { Mapping, SourceMap, Stack } from '@volar/source-map';

/** virtual code is expected to support verification */
verification: boolean | {
verification?: boolean | {
shouldReport?(): boolean;
};
/** virtual code is expected to support assisted completion */
completion: boolean | {
completion?: boolean | {
isAdditional?: boolean;

@@ -59,7 +59,7 @@ onlyImport?: boolean;

/** virtual code is expected correctly reflect semantic of the source code */
semantic: boolean | {
semantic?: boolean | {
shouldHighlight?(): boolean;
};
/** virtual code is expected correctly reflect reference relationships of the source code */
navigation: boolean | {
navigation?: boolean | {
shouldRename?(): boolean;

@@ -70,5 +70,5 @@ resolveRenameNewName?(newName: string): string;

/** virtual code is expected correctly reflect the structural information of the source code */
structure: boolean;
structure?: boolean;
/** virtual code is expected correctly reflect the format information of the source code */
format: boolean;
format?: boolean;
}

@@ -75,0 +75,0 @@ export interface ServiceScript {

{
"name": "@volar/language-core",
"version": "2.2.0-alpha.8",
"version": "2.2.0-alpha.9",
"license": "MIT",

@@ -15,5 +15,5 @@ "files": [

"dependencies": {
"@volar/source-map": "2.2.0-alpha.8"
"@volar/source-map": "2.2.0-alpha.9"
},
"gitHead": "a48e2549a5bf216ab655e4ef7e6d8c545d10d558"
"gitHead": "7373fb794012e219aae3948c730c004827b03021"
}
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