Merge pull request #702 from zed-industries/typescript

Add support for JS/Typescript/TSX, allow language servers to support multiple languages
This commit is contained in:
Max Brunsfeld 2022-04-01 15:24:58 -07:00 committed by GitHub
commit 79bd8642e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 2444 additions and 1641 deletions

View file

@ -1,5 +1,5 @@
pub mod assets;
pub mod language;
pub mod languages;
pub mod menus;
#[cfg(any(test, feature = "test-support"))]
pub mod test;
@ -574,7 +574,7 @@ mod tests {
assert_eq!(editor.title(cx), "untitled");
assert!(Arc::ptr_eq(
editor.language(cx).unwrap(),
&language::PLAIN_TEXT
&languages::PLAIN_TEXT
));
editor.handle_input(&editor::Input("hi".into()), cx);
assert!(editor.is_dirty(cx));
@ -664,7 +664,7 @@ mod tests {
editor.update(cx, |editor, cx| {
assert!(Arc::ptr_eq(
editor.language(cx).unwrap(),
&language::PLAIN_TEXT
&languages::PLAIN_TEXT
));
editor.handle_input(&editor::Input("hi".into()), cx);
assert!(editor.is_dirty(cx.as_ref()));