@volar/language-core
Advanced tools
Comparing version 2.2.0-alpha.8 to 2.2.0-alpha.9
@@ -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" | ||
} |
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
30821
+ Added@volar/source-map@2.2.0-alpha.9(transitive)
- Removed@volar/source-map@2.2.0-alpha.8(transitive)