mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 10:18:16 +00:00
feat: add more auto closing pairs, surrounding pairs, and characters that could make auto closing before (#209)
* dev: add more characters that could make auto closing before * dev: add more auto closing pairs and surrounding pairs * dev: remove a debugging log * dev: add a comment
This commit is contained in:
parent
786814b09c
commit
4227f864a2
3 changed files with 32 additions and 4 deletions
|
@ -1280,7 +1280,7 @@ impl<'a, 'b> TypeSimplifier<'a, 'b> {
|
|||
let mut lbs = Vec::with_capacity(w.lbs.len());
|
||||
let mut ubs = Vec::with_capacity(w.ubs.len());
|
||||
|
||||
log::info!(
|
||||
log::debug!(
|
||||
"transform var [principal={}] {v:?} with {w:?}",
|
||||
self.principal
|
||||
);
|
||||
|
|
|
@ -426,6 +426,8 @@ impl Init {
|
|||
definition_provider: Some(OneOf::Left(true)),
|
||||
references_provider: Some(OneOf::Left(true)),
|
||||
completion_provider: Some(CompletionOptions {
|
||||
// Please update the language-configurations.json if you are changing this
|
||||
// setting.
|
||||
trigger_characters: Some(vec![
|
||||
String::from("#"),
|
||||
String::from("("),
|
||||
|
|
|
@ -30,9 +30,22 @@
|
|||
"open": "$",
|
||||
"close": "$",
|
||||
"notIn": ["string"]
|
||||
}
|
||||
},
|
||||
|
||||
["“", "”"],
|
||||
["‘", "’"],
|
||||
["《", "》"],
|
||||
["〈", "〉"],
|
||||
["(", ")"],
|
||||
["『", "』"],
|
||||
["「", "」"],
|
||||
["【", "】"],
|
||||
["〖", "〗"],
|
||||
["〔", "〕"],
|
||||
["[", "]"],
|
||||
["{", "}"]
|
||||
],
|
||||
"autoCloseBefore": "$ \n\t",
|
||||
"autoCloseBefore": ";:.,=}])>$ \n\t",
|
||||
"surroundingPairs": [
|
||||
["[", "]"],
|
||||
["{", "}"],
|
||||
|
@ -41,6 +54,19 @@
|
|||
["*", "*"],
|
||||
["_", "_"],
|
||||
["`", "`"],
|
||||
["$", "$"]
|
||||
["$", "$"],
|
||||
|
||||
["“", "”"],
|
||||
["‘", "’"],
|
||||
["《", "》"],
|
||||
["〈", "〉"],
|
||||
["(", ")"],
|
||||
["『", "』"],
|
||||
["「", "」"],
|
||||
["【", "】"],
|
||||
["〖", "〗"],
|
||||
["〔", "〕"],
|
||||
["[", "]"],
|
||||
["{", "}"]
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue