Commit graph

54 commits

Author SHA1 Message Date
Mohammad Ashar Khan
4de9edee81
fix: ignore unknown cli commands (#73)
closes #72 

Ignore error during parsing unknown CLI flags.
2025-04-17 12:35:04 +05:30
Ashar
a65a4ae95a
feat: Add include-path CLI parameter with clap (#71)
Closes #70
2025-03-31 21:24:05 +05:30
Mohammad Ashar Khan
7594ff7748
fix: does not works in no workspace mode (#69)
closes #68
2025-03-29 00:32:51 +05:30
Mohammad Ashar Khan
1a4e4d1cff
fix: Do not emit pkg config metadata in pkg-config (#67) 2025-03-26 14:43:58 +05:30
Mohammad Ashar Khan
61fb5b9644
Update README.md (#66) 2025-03-26 13:50:51 +05:30
Mohammad Ashar Khan
e7ed321a17
release: prepare 0.11.0 (#65) 2025-03-26 13:36:13 +05:30
Mohammad Ashar Khan
f09819a0cf
breaking: refactor config to be simpler (#64)
closes #63
2025-03-26 13:31:06 +05:30
Mohammad Ashar Khan
8952a690f0
feat: Run and report diagnostics from protoc upon save (#62)
Closes #28
2025-03-19 01:03:04 +05:30
Mohammad Ashar Khan
ce4b8c0c59
feat: Parse whole workspace before sending rename and reference result (#61)
Closes #54
2025-03-18 00:19:40 +05:30
Mohammad Ashar Khan
68b3c2e9dc
feat: Bump rust edition to 2024 and dependencies (#58) 2025-02-27 15:21:01 +05:30
Ashar
907fb90931
feat: Add docs about include_path and format code. (#57)
feat: Add docs about include_path and format code.
2025-02-24 01:25:13 +05:30
Ashar
adda8aeb28
feat: recursively parse import files and goto definition of well known types (#56)
When a file is opened, all imports are parsed recursively up to a depth
of 8. When a file is being edited it and its imports are parsed with a
depth of 2.
2025-01-26 22:29:04 +05:30
Ashar
f39209498a
feat: Jump to definition for imports take to file (#55)
closes #50
2025-01-26 01:35:37 +05:30
Ashar
0f7079b257
feat: use pkg-config to discover well known types and hover on imports (#53)
A step closer...
2025-01-25 23:45:40 +05:30
Omar Mohamed Khallaf
c426e1a897
feat: support reading config from .protols.toml (#52) 2025-01-19 08:41:06 +05:30
Ashar
a0f6e51410
feat: Read import path and produce import diagnostics (#49) 2025-01-13 01:17:48 +05:30
Ashar
f5cda973ee
feat: Add import path and tree refactor (#48)
Rename some confusing tree functions and add a tree method to get all
import paths of a file.
2025-01-12 22:04:03 +05:30
Ashar
7709f3c423
feat: add protols.toml to configure protols in a workspace (#36) 2025-01-11 16:26:47 +05:30
Ashar
8ffe219b12
chore: release 0.9.0 with misc fixes (#47) 2025-01-04 22:14:29 +05:30
Ashar
e33e1e68f2
chore: bump version to 0.9.0 2025-01-04 21:39:43 +05:30
Asaf Flescher
d867b1b304
Formatter uses stdin instead of filepath (#46) 2024-12-31 08:18:27 +05:30
Ashar
10d2a1e3b9
feat: Use markdown for hover text and add well known types hover documentations (#44) 2024-12-26 20:26:19 +05:30
Ashar
e147cb44bb
feat: Add a --version cli parameter to check for version (#43)
Useful for checking the version manually and also some programs like
neovim does `<lsp> --version` to display in LSP health checks.
2024-12-26 15:50:46 +05:30
Ashar
bb41aabdb1
feat: Add hover docs for builtin types: (#42)
Adds hover docs to builtin types such as `int`, `string` etc in message
fields and methods.
2024-12-26 09:55:20 +05:30
Ashar
7df5ad0c08
docs: Add instruction for installing from mason.nvim 2024-12-21 21:11:58 +05:30
Ashar
7bee1ba838
feat: add find references feature (#40)
- fixed a bug which caused prefix-ed fields to be renames as well.
2024-10-27 20:23:58 +05:30
Mohammad Ashar Khan
5e07a1689c
fix: false syntax error in edition, reserved field without quote or single quote (#39)
As the tree-parser was unable to parse the following, they were falsely
shown as syntax error during diagnostics.

- reserved field with single quotation
- reserved fields without quotation
- edition keyword
2024-10-25 23:13:54 +05:30
Mohammad Ashar Khan
76cd2a9aad
feat: add support for basic proto2 (#38) 2024-10-24 18:43:16 +05:30
Ashar
c1c30a0984
release: tag 0.6.2 (#35) 2024-10-05 14:26:21 +05:30
Ashar
340d306861
fix: prefix . for fully qualified field names was not working (#34)
Sometimes, user prefer to use `.` as prefix for fully qualified field
names. This fixes the `split_package_identifier` to take into account
this during splitting.

This potentially fixes: #31
2024-10-05 14:20:51 +05:30
Ashar
247da663ae
fix: Unhandled WorkspaceConfigurationChanged notification (#33)
Potentially fixes #32
2024-10-04 19:31:41 +05:30
Ashar
c36b05bf1a
feat: add doc and range formatting if clang-format is available (#27)
- [x] Update README
- [x] Tag and release v0.6.0
- [x] Format temporary file not original file
2024-09-01 15:34:40 +05:30
Ashar
993120b7ea
Update README.md 2024-08-24 23:40:01 +05:30
Ashar
9e0098df60
feat: add support for renaming across workspace (#26)
Co-authored-by: mohammadkhan <mohammadkhan@digitalocean.com>
2024-08-24 23:38:27 +05:30
Ashar
2e0b86e4d5
improve: parse workspace in worker thread with progress (#24)
Co-authored-by: mohammadkhan <mohammadkhan@digitalocean.com>
2024-08-19 19:01:34 +05:30
Ashar
815de553d3
chore: add install instruction for VS code (#23) 2024-08-19 14:32:21 +05:30
Ashar
fba42fe9d2
feat: add workspace support (#20)
- [x] Hover
- [x] Prepare rename
- [x] Completion of enums and messages in current package
- [ ] ~Rename~ (Deferred to future)
- [x] Definition
- [ ] ~Workspace Symbols~ (No use as of now)

Handle extra operations to update inner state:

- [x] did_create_file
- [x] did_delete_file
- [x] did_rename_file
2024-08-19 01:01:13 +05:30
Ashar
c60f8c1cec
Create FUNDING.yml 2024-08-17 16:11:13 +05:30
Mohammad Ashar Khan
94742d63c6
improve: cache parsed trees for documents (#19)
Co-authored-by: coder3101 <ashar786khan@gmail.com>
2024-08-16 02:52:54 +05:30
Mohammad Ashar Khan
63c4640d76
bump: version to 0.3.0 (#17) 2024-07-31 23:36:32 +05:30
Mohammad Ashar Khan
7089745969
ci: build binaries on publish (#16) 2024-07-31 23:33:06 +05:30
Ashar
fec7bfb3de
feat: add rename capability (#14)
- [x] Add unit test for `rename_kind`
- [x] Test renaming via neovim client

---------

Co-authored-by: mohammadkhan <mohammadkhan@digitalocean.com>
2024-07-22 20:38:00 +05:30
Ashar
e72ce0fcc7
feat: add completion for keywords (#13) 2024-07-20 18:48:13 +05:30
Ashar
a2d2febc7e
fix: reserved field error test and update parser (#12)
Update to protols based on
https://github.com/mitchellh/tree-sitter-proto/pull/9
2024-07-20 13:12:14 +05:30
Mohammad Ashar Khan
5d739fb983
refactor: reuse code and fix a didClose missing crash (#10)
Some housekeeping!
2024-07-18 00:39:30 +05:30
Eugene Marcotte
5427b3b5c6
feat: add a document_symbols support (#9) 2024-07-17 23:32:11 +05:30
Mohammad Ashar Khan
a7ed80b7fc
docs: update readme to use nvim-lspconfig (#8) 2024-06-25 16:05:48 +05:30
Ashar
dd6ffd5c8c
docs: Improve README to include a video and fix text (#7) 2024-06-22 20:38:20 +05:30
Mohammad Ashar Khan
2ebbb0ffa5
protols: publish to crates.io (#6)
Closes #5

---------

Co-authored-by: coder3101 <ashar786khan@gmail.com>
2024-06-22 15:23:59 +05:30
Ashar
59dc1ab726
feat: Add support for go to definition and hover and diagnostics on single file (#2)
In a single file mode, the definition and hover support have been added.
2024-06-16 23:30:29 +05:30