Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for Kotlin language #813

Merged
merged 25 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
82ca14a
feat: add support for Kotlin
sonique6784 Nov 17, 2023
e32f4d1
Update programming-languages.md
wsxiaoys Nov 18, 2023
79075d6
Update Cargo.toml
wsxiaoys Nov 18, 2023
a593b66
fix: kotlin missing TAGGING_QUERY
sonique6784 Nov 18, 2023
d3be178
docs: remove 0.5.0 warning as tabby adapt same format for remote / lo…
wsxiaoys Nov 17, 2023
2b41dc1
feat: make --model optional, so user can start a chat only instance (…
wsxiaoys Nov 17, 2023
cae8e5a
fix: mark tabby-ui as yarn managed
wsxiaoys Nov 17, 2023
e3bd652
fix: rust build caused by 1.74.0 release (#819)
wsxiaoys Nov 17, 2023
9d0f449
chore: exclude experimental directory for language stats
wsxiaoys Nov 17, 2023
f295517
chore: exclude ee/tabby-webserver/ui to language stats
wsxiaoys Nov 17, 2023
15e130c
fix: move db path, fix compile error (#820)
darknight Nov 18, 2023
400a5c1
feat(vscode): Add dont-show-again for warnings. Add online help link…
icycodes Nov 18, 2023
7dfd139
refactor: delete contrib/jetson/Dockerfile as it's no longer compatib…
wsxiaoys Nov 18, 2023
9121763
feat(vim): update tabby-agent. (#824)
icycodes Nov 18, 2023
79a41c9
feat(intellij): Add dont-show-again for warnings. Add more online hel…
icycodes Nov 18, 2023
fa7e565
feat: implement basic dependency detection for python / rust (#825)
wsxiaoys Nov 18, 2023
a17258e
fix: keep only direct dependency, clean up path (#827)
wsxiaoys Nov 18, 2023
df86b0c
feat: add support for Kotlin
sonique6784 Nov 17, 2023
444eee5
Update Cargo.toml
wsxiaoys Nov 18, 2023
4acf2f3
fix: adjustment post rebase
sonique6784 Nov 18, 2023
91f390c
Merge branch 'main' into feature/language-kotlin
sonique6784 Nov 18, 2023
9d144f2
fix: added kotlin.scm to cover query tags
sonique6784 Nov 19, 2023
a3f6a04
fix: updated kotlin.scm
sonique6784 Nov 21, 2023
648b06e
remove definition import
sonique6784 Nov 22, 2023
d79b607
remove typealias
sonique6784 Nov 22, 2023
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
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions crates/tabby-common/assets/languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,30 @@ top_level_keywords = [
"return",
]

[[config]]
languages = ["kotlin"]
line_comment = "//"
top_level_keywords = [
"abstract",
"public",
"private",
"companion",
"class",
"data",
"const",
"actual",
"expect",
"sealed",
"suspend",
"fun",
"import",
"interface",
"package",
"var",
"val",
"enum",
]

[[config]]
languages = ["javascript", "typescript", "javascriptreact", "typescriptreact"]
line_comment = "//"
Expand Down
1 change: 1 addition & 0 deletions crates/tabby-scheduler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ serde-jsonlines = { workspace = true }
file-rotate = "0.7.5"
tree-sitter-python = "0.20.2"
tree-sitter-java = "0.20.2"
tree-sitter-kotlin = "0.3.1"
tree-sitter-rust = "0.20.3"
tree-sitter-typescript = "0.20.3"
tree-sitter-go = "0.20.0"
Expand Down
1 change: 1 addition & 0 deletions crates/tabby-scheduler/src/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ lazy_static! {
("haskell", vec!["hs"]),
("html", vec!["html"]),
("java", vec!["java"]),
("kotlin", vec!["kt", "kts"]),
("julia", vec!["jl"]),
("lua", vec!["lua"]),
("makefile", vec!["Makefile"]),
Expand Down
6 changes: 6 additions & 0 deletions crates/tabby-scheduler/src/dataset/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ lazy_static! {
.unwrap(),
),
),
(
"kotlin",
TagsConfigurationSync(
TagsConfiguration::new(tree_sitter_kotlin::language(), "", "").unwrap(),
wsxiaoys marked this conversation as resolved.
Show resolved Hide resolved
),
),
(
"javascript-typescript",
TagsConfigurationSync(
Expand Down
2 changes: 2 additions & 0 deletions website/docs/programming-languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ For an actual example of an issue or pull request adding the above support, plea
* [Golang](https://go.dev/): Since v0.4.0
* [Ruby](https://www.ruby-lang.org/): Since v0.4.0
* [Java](https://www.java.com/): Since v0.6.0
* [Kotlin](https://www.kotlinlang.org/): Since v0.6.0

## Languages Missing Certain Support

Expand All @@ -42,3 +43,4 @@ For an actual example of an issue or pull request adding the above support, plea
| PHP | 🚫 | 🚫 |
| Perl | 🚫 | 🚫 |
| Scala | 🚫 | 🚫 |
| Kotlin | 🚫 | 🚫 |
wsxiaoys marked this conversation as resolved.
Show resolved Hide resolved