mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-22 12:34:39 +00:00
fix: local registry feature was not enabled (#2186)
There was a typo of the feature and it was never enabled. This was introduced when compiling tinymist for wasm targets.
This commit is contained in:
parent
850852fc3b
commit
5feebb31d2
1 changed files with 9 additions and 10 deletions
|
|
@ -34,16 +34,15 @@ impl CompletionPair<'_, '_, '_> {
|
|||
.iter()
|
||||
.map(|(spec, desc)| (spec, desc.clone()))
|
||||
.collect();
|
||||
#[cfg(feature = "http-registry")]
|
||||
{
|
||||
// local_packages to references and add them to the packages
|
||||
#[cfg(feature = "local-registry")]
|
||||
let local_packages_refs = self.worker.ctx.local_packages();
|
||||
#[cfg(feature = "local-registry")]
|
||||
packages.extend(
|
||||
local_packages_refs
|
||||
.iter()
|
||||
.map(|spec| (spec, Some(eco_format!("{} v{}", spec.name, spec.version)))),
|
||||
);
|
||||
}
|
||||
|
||||
packages.sort_by_key(|(spec, _)| (&spec.namespace, &spec.name, Reverse(spec.version)));
|
||||
if !all_versions {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue