tamasfe / taplo

A TOML toolkit written in Rust
https://taplo.tamasfe.dev
MIT License
1.46k stars 115 forks source link

suppress parts of https://taplo.tamasfe.dev/schemas/Cargo.toml.json from other lsp #665

Closed frederik-uni closed 2 months ago

frederik-uni commented 2 months ago

I built a crate/version/feature suggestion language server. When I try to suggest the versions, I get the version suggestion, which I want to suppress. & when I am typing in the versionstring I get kinda useless suggestions I don't wanna see. Is there a way to disable it from another lsp?

Screenshot 2024-08-30 at 12 40 40 Screenshot 2024-08-30 at 12 39 25
panekj commented 2 months ago

That would be up to your editor

frederik-uni commented 2 months ago

is there a way to overwrite the built in schemas?

panekj commented 2 months ago

There isn't a built-in schema, all schemas are sourced from SchemaStore. For overriding see https://taplo.tamasfe.dev/configuration/using-schemas.html

frederik-uni commented 2 months ago

:schema ./foo-schema.json