@volar/language-core
Advanced tools
Comparing version 2.4.10 to 2.4.11
@@ -8,3 +8,3 @@ export { Mapping, SourceMap } from '@volar/source-map'; | ||
export declare const defaultMapperFactory: MapperFactory; | ||
export declare function createLanguage<T>(plugins: LanguagePlugin<T>[], scriptRegistry: Map<T, SourceScript<T>>, sync: (id: T, includeFsFiles: boolean) => void): Language<T>; | ||
export declare function createLanguage<T>(plugins: LanguagePlugin<T>[], scriptRegistry: Map<T, SourceScript<T>>, sync: (id: T, includeFsFiles: boolean, shouldRegister: boolean) => void): Language<T>; | ||
export declare function forEachEmbeddedCode(virtualCode: VirtualCode): Generator<VirtualCode>; |
@@ -41,4 +41,4 @@ "use strict"; | ||
}, | ||
get(id, includeFsFiles = true) { | ||
sync(id, includeFsFiles); | ||
get(id, includeFsFiles = true, shouldRegister = false) { | ||
sync(id, includeFsFiles, shouldRegister); | ||
const result = scriptRegistry.get(id); | ||
@@ -215,3 +215,3 @@ // The sync function provider may not always call the set function due to caching, so it is necessary to explicitly check isAssociationDirty. | ||
getAssociatedScript(id) { | ||
sync(id, true); | ||
sync(id, true, true); | ||
const relatedSourceScript = scriptRegistry.get(id); | ||
@@ -218,0 +218,0 @@ if (relatedSourceScript) { |
@@ -15,3 +15,3 @@ import type { Mapping } from '@volar/source-map'; | ||
scripts: { | ||
get(id: T, includeFsFiles?: boolean): SourceScript<T> | undefined; | ||
get(id: T, includeFsFiles?: boolean, shouldRegister?: boolean): SourceScript<T> | undefined; | ||
set(id: T, snapshot: IScriptSnapshot, languageId?: string, plugins?: LanguagePlugin<T>[]): SourceScript<T> | undefined; | ||
@@ -18,0 +18,0 @@ delete(id: T): void; |
{ | ||
"name": "@volar/language-core", | ||
"version": "2.4.10", | ||
"version": "2.4.11", | ||
"license": "MIT", | ||
@@ -15,5 +15,5 @@ "files": [ | ||
"dependencies": { | ||
"@volar/source-map": "2.4.10" | ||
"@volar/source-map": "2.4.11" | ||
}, | ||
"gitHead": "03d1e8b07e1e64921b76b635c7064d7b4fcf63b5" | ||
"gitHead": "42ccae005cc8516e07ad38f4d7730cab9b723340" | ||
} |
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
27564
3
+ Added@volar/source-map@2.4.11(transitive)
- Removed@volar/source-map@2.4.10(transitive)
Updated@volar/source-map@2.4.11