mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 02:08:17 +00:00
fix: don't allow type completion in string content (#1420)
This commit is contained in:
parent
1fe422f963
commit
0cb12786b3
1 changed files with 0 additions and 3 deletions
|
@ -614,9 +614,6 @@ impl CompletionPair<'_, '_, '_> {
|
|||
BuiltinTy::Path(..) | BuiltinTy::TextFont | BuiltinTy::TextFeature,
|
||||
) => true,
|
||||
Ty::Value(val) => matches!(val.val, Value::Str(..)),
|
||||
Ty::Builtin(BuiltinTy::Type(ty)) => {
|
||||
*ty == Type::of::<typst::foundations::Str>()
|
||||
}
|
||||
_ => false,
|
||||
},
|
||||
_ => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue