Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tmc-langs-framework/src/meta_syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ impl<R: Read> MetaSyntaxParser<BufReader<R>> {
let reader = BufReader::new(target);
// assigns each supported file extension with the proper comment syntax
let meta_syntaxes: &[MetaSyntax] = match target_extension {
"java" | "c" | "cpp" | "h" | "hpp" | "js" | "css" | "rs" | "qml" => &*META_SYNTAXES_C,
"java" | "c" | "cpp" | "h" | "hpp" | "js" | "css" | "rs" | "qml" | "cs" => {
&*META_SYNTAXES_C
}
"xml" | "http" | "html" | "qrc" => &*META_SYNTAXES_HTML,
"properties" | "py" | "R" | "pro" => &*META_SYNTAXES_PY,
_ => &[],
Expand Down
1 change: 1 addition & 0 deletions tmc-langs/src/config/tmc_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl TmcConfig {
"Failed to deserialize config at {}, resetting",
path.display()
);
drop(guard); // unlock file before recreating it
Self::init_at(client_name, &path)?
}
}
Expand Down