Skip to content

Commit d439c36

Browse files
authoredApr 13, 2025
feat: request autocompletion without typing a letter (#310)
* so far… * hmmm * awesome! * refactor, terminate by semicolons * got the tests… * hell yeah * give it a spin * yeah * leave the logs to the beavers * add benchmarks * cant fail
1 parent a358cee commit d439c36

File tree

17 files changed

+1169
-105
lines changed

17 files changed

+1169
-105
lines changed
 

‎Cargo.lock

+166-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

-7
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ syn = "1.0.109"
4646
termcolor = "1.4.1"
4747
test-log = "0.2.17"
4848
tokio = { version = "1.40.0", features = ["full"] }
49-
tower-lsp = "0.20.0"
5049
tracing = { version = "0.1.40", default-features = false, features = ["std"] }
5150
tracing-bunyan-formatter = { version = "0.3.10 " }
5251
tracing-subscriber = "0.3.18"
@@ -57,7 +56,6 @@ unicode-width = "0.1.12"
5756
# postgres specific crates
5857
pgt_analyse = { path = "./crates/pgt_analyse", version = "0.0.0" }
5958
pgt_analyser = { path = "./crates/pgt_analyser", version = "0.0.0" }
60-
pgt_base_db = { path = "./crates/pgt_base_db", version = "0.0.0" }
6159
pgt_cli = { path = "./crates/pgt_cli", version = "0.0.0" }
6260
pgt_completions = { path = "./crates/pgt_completions", version = "0.0.0" }
6361
pgt_configuration = { path = "./crates/pgt_configuration", version = "0.0.0" }
@@ -69,9 +67,7 @@ pgt_flags = { path = "./crates/pgt_flags", version = "0.0.0" }
6967
pgt_fs = { path = "./crates/pgt_fs", version = "0.0.0" }
7068
pgt_lexer = { path = "./crates/pgt_lexer", version = "0.0.0" }
7169
pgt_lexer_codegen = { path = "./crates/pgt_lexer_codegen", version = "0.0.0" }
72-
pgt_lint = { path = "./crates/pgt_lint", version = "0.0.0" }
7370
pgt_lsp = { path = "./crates/pgt_lsp", version = "0.0.0" }
74-
pgt_lsp_converters = { path = "./crates/pgt_lsp_converters", version = "0.0.0" }
7571
pgt_markup = { path = "./crates/pgt_markup", version = "0.0.0" }
7672
pgt_query_ext = { path = "./crates/pgt_query_ext", version = "0.0.0" }
7773
pgt_query_ext_codegen = { path = "./crates/pgt_query_ext_codegen", version = "0.0.0" }
@@ -81,14 +77,11 @@ pgt_statement_splitter = { path = "./crates/pgt_statement_splitter", version
8177
pgt_text_edit = { path = "./crates/pgt_text_edit", version = "0.0.0" }
8278
pgt_text_size = { path = "./crates/pgt_text_size", version = "0.0.0" }
8379
pgt_treesitter_queries = { path = "./crates/pgt_treesitter_queries", version = "0.0.0" }
84-
pgt_type_resolver = { path = "./crates/pgt_type_resolver", version = "0.0.0" }
8580
pgt_typecheck = { path = "./crates/pgt_typecheck", version = "0.0.0" }
8681
pgt_workspace = { path = "./crates/pgt_workspace", version = "0.0.0" }
8782

8883
pgt_test_macros = { path = "./crates/pgt_test_macros" }
8984
pgt_test_utils = { path = "./crates/pgt_test_utils" }
9085

91-
docs_codegen = { path = "./docs/codegen", version = "0.0.0" }
92-
9386
[profile.dev.package]
9487
insta.opt-level = 3

‎crates/pgt_completions/Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pgt_treesitter_queries.workspace = true
2222
schemars = { workspace = true, optional = true }
2323
serde = { workspace = true, features = ["derive"] }
2424
serde_json = { workspace = true }
25+
tracing = { workspace = true }
2526
tree-sitter.workspace = true
2627
tree_sitter_sql.workspace = true
2728

@@ -30,10 +31,15 @@ sqlx.workspace = true
3031
tokio = { version = "1.41.1", features = ["full"] }
3132

3233
[dev-dependencies]
34+
criterion = "0.5.1"
3335
pgt_test_utils.workspace = true
3436

3537
[lib]
3638
doctest = false
3739

3840
[features]
3941
schema = ["dep:schemars"]
42+
43+
[[bench]]
44+
harness = false
45+
name = "sanitization"

0 commit comments

Comments
 (0)
Please sign in to comment.