Nik Revenco
c7dd5c1ad9
chore: move comment to a doc comment
2025-05-15 17:18:59 +01:00
Nik Revenco
600bdae69f
chore: update to new version of my PR to tree-sitter
2025-05-15 17:18:13 +01:00
Nik Revenco
f07e6973fe
fix: do not consider languages that do not have comment tokens
2025-05-14 19:41:18 +01:00
Nik Revenco
77a74feb24
feat: solve merge conflicts and make tests more modular
2025-05-14 18:33:05 +01:00
Nik Revenco
d0ca96c566
Merge branch 'master' into determine-comment-tokens
2025-05-14 17:07:54 +01:00
Michael Davis
aea53523dd
Replace tree-sitter with tree-house
2025-05-13 18:43:43 -04:00
Michael Davis
24e3ccc31b
Add the `syn_loader` to `Document`
...
This type also exists on `Editor`. This change brings it to the
`Document` as well because the replacement for `Syntax` in the child
commits will eliminate `Syntax`'s copy of `syn_loader`. `Syntax` will
also be responsible for returning the highlighter and query iterators
(which will borrow the loader), so the loader must be separated from
that type.
In the long run, when we make a larger refactor to have
`Document::apply` be a function of the `Editor` instead of the
`Document`, we will be able to drop this field on `Document` - it is
currently only necessary for `Document::apply`. Once we make that
refactor, we will be able to eliminate the surrounding `Arc` in
`Arc<ArcSwap<syntax::Loader>>` and use the `ArcSwap` directly instead.
2025-05-13 18:30:21 -04:00
Michael Davis
c94fde8d1c
syntax: Move config types to a separate module
2025-05-13 18:30:21 -04:00
dependabot[bot]
447a6d3299
build(deps): bump the rust-dependencies group with 6 updates ( #13518 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-13 08:26:46 -05:00
Joffrey Bluthé
949d9e4433
feat: give formatters access to filename ( #13429 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-04-28 17:34:05 -05:00
dependabot[bot]
5d16aae58e
build(deps): bump the rust-dependencies group across 1 directory with 5 updates ( #13301 )
...
Bumps the rust-dependencies group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [smallvec](https://github.com/servo/rust-smallvec ) | `1.14.0` | `1.15.0` |
| [tokio](https://github.com/tokio-rs/tokio ) | `1.44.1` | `1.44.2` |
| [rustix](https://github.com/bytecodealliance/rustix ) | `1.0.3` | `1.0.5` |
| [indexmap](https://github.com/indexmap-rs/indexmap ) | `2.8.0` | `2.9.0` |
| [cc](https://github.com/rust-lang/cc-rs ) | `1.2.17` | `1.2.18` |
Updates `smallvec` from 1.14.0 to 1.15.0
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.14.0...v1.15.0 )
Updates `tokio` from 1.44.1 to 1.44.2
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.44.1...tokio-1.44.2 )
Updates `rustix` from 1.0.3 to 1.0.5
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGES.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v1.0.3...v1.0.5 )
Updates `indexmap` from 2.8.0 to 2.9.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/main/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.8.0...2.9.0 )
Updates `cc` from 1.2.17 to 1.2.18
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.17...cc-v1.2.18 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-version: 1.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: tokio
dependency-version: 1.44.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: rustix
dependency-version: 1.0.5
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: indexmap
dependency-version: 2.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: cc
dependency-version: 1.2.18
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 21:33:46 -05:00
Rolo
5b72b59448
perf: use `next_back` on `DoubleEndedIterator`
2025-04-06 12:03:14 -05:00
Nikita Revenco
f18a2d7c5a
refactor: do not use pointless assertion
2025-03-25 14:41:27 +00:00
Nikita Revenco
a07819b497
refactor: remove `pub`, use a getter instead
2025-03-25 14:41:27 +00:00
Nikita Revenco
ec94fbdf3b
refactor: collapse 2 `map` intoa a single `map`
2025-03-25 14:41:27 +00:00
Nikita Revenco
18aaf93da0
chore: remove Clone derive from Syntax
2025-03-25 14:41:27 +00:00
Nikita Revenco
c72755437a
feat: continue comment uses injected comment tokens
2025-03-25 14:41:27 +00:00
Nikita Revenco
37f8cbed3c
feat: upgrade `tree-sitter-injection` to show injections for entire file
2025-03-25 14:41:27 +00:00
Nikita Revenco
56dedd10a7
fix: add `regex` to ignored layer configs
2025-03-25 14:41:27 +00:00
Nikita Revenco
d451077978
feat: add typable command to get injection layer for current range
2025-03-25 14:41:27 +00:00
Nikita Revenco
99d16170dc
fix: commenting full lines
2025-03-25 14:41:27 +00:00
Nikita Revenco
e9683381b6
refactor: extract a separate toggle_comment_impl function
2025-03-25 14:41:27 +00:00
Nikita Revenco
093805b62c
perf: get rid of a `.clone()`
2025-03-25 14:41:27 +00:00
Nikita Revenco
63fb49c1b4
chore: clean up code
...
chore: remove comment
2025-03-25 14:41:27 +00:00
Nikita Revenco
13b52e9d97
refactor: rename variables ,use iterator methods, separate vars for added and removed chars
2025-03-25 14:41:27 +00:00
Nikita Revenco
7a39fb8164
refactor: rename variable
2025-03-25 14:41:27 +00:00
Nikita Revenco
bbd7cb7bfb
fix: incorrect order of index additions
2025-03-25 14:41:27 +00:00
Nikita Revenco
76b3e6778d
chore: remove log statement
2025-03-25 14:41:27 +00:00
Nikita Revenco
31e2f739ee
fix: panic as no ranges were inserted
2025-03-25 14:41:27 +00:00
Nikita Revenco
b94d3a70e7
fix: multiple selections having incorrect range and not properly accounting for comment tokens
2025-03-25 14:41:27 +00:00
Nikita Revenco
0a882107ed
fix: restore selections when created comment
2025-03-25 14:41:27 +00:00
Nikita Revenco
de7884c7dd
test: uncomment previosly skipped tests
2025-03-25 14:41:27 +00:00
Nikita Revenco
371dec3774
feat: block comment toggle and single line comment toggle
2025-03-25 14:41:27 +00:00
Nikita Revenco
544e460ac4
feat: implement toggle comment funcitonality for multiple comment tokens
2025-03-25 14:41:27 +00:00
Nikita Revenco
29e0a00eb0
feat: implement toggle comment for the simplest case
2025-03-25 14:41:27 +00:00
Nikita Revenco
d719f1572b
feat: gain access to injection-specific line and block comment tokens
2025-03-25 14:41:27 +00:00
Nikita Revenco
b10fc21169
chore: clean up code
2025-03-25 14:41:27 +00:00
Nikita Revenco
8fe3f90cbb
feat: use FnMut
2025-03-25 14:41:27 +00:00
Nikita Revenco
38bede20ef
feat: add new params
2025-03-25 14:41:27 +00:00
Nikita Revenco
70f27b390d
feat: add function to get LanguageConfiguration from a LayerId
...
Co-authored-by: the-mikedavis <mcarsondavis@gmail.com>
2025-03-25 14:41:27 +00:00
Nik Revenco
0ee5850016
Color swatches ( 🟩 green 🟥 #ffaaaa ) ( #12308 )
2025-03-23 16:07:02 -05:00
Michael Davis
2cc33b5c47
Add pull diagnostics `identifier` to LSP diagnostic provider
...
This includes a change to lsp-types to store the identifier as an Arc
since it will be cloned for each diagnostic.
2025-03-22 09:25:29 -04:00
Michael Davis
683fac65e7
Refactor DiagnosticProvider as an enum
...
This resolves a TODO in the core diagnostic module to refactor this
type. It was originally an alias of `LanguageServerId` for simplicity.
Refactoring as an enum is a necessary step towards introducing
"internal" diagnostics - diagnostics emitted by core features such as
a spell checker. Fully supporting this use-case will require further
larger changes to the diagnostic type, but the change to the provider
can be made first.
Note that `Copy` is not derived for `DiagnosticProvider` (as it was
previously because `LanguageServerId` is `Copy`). In the child commits
we will add the `identifier` used in LSP pull diagnostics which is a
string - not `Copy`.
2025-03-22 09:25:29 -04:00
Michael Davis
3a63e85b6a
Support EditorConfig ( #13056 )
2025-03-22 16:06:41 +09:00
Michael Davis
b47c9da3a1
minor: Use a workspace dependency for parking_lot
2025-03-13 12:34:40 -04:00
dependabot[bot]
ff558f9105
build(deps): bump the rust-dependencies group with 5 updates ( #13070 )
...
Bumps the rust-dependencies group with 5 updates:
| Package | From | To |
| --- | --- | --- |
| [tempfile](https://github.com/Stebalien/tempfile ) | `3.17.1` | `3.18.0` |
| [once_cell](https://github.com/matklad/once_cell ) | `1.20.3` | `1.21.0` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.218` | `1.0.219` |
| [tokio](https://github.com/tokio-rs/tokio ) | `1.43.0` | `1.44.0` |
| [indexmap](https://github.com/indexmap-rs/indexmap ) | `2.7.1` | `2.8.0` |
Updates `tempfile` from 3.17.1 to 3.18.0
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.17.1...v3.18.0 )
Updates `once_cell` from 1.20.3 to 1.21.0
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.20.3...v1.21.0 )
Updates `serde` from 1.0.218 to 1.0.219
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.218...v1.0.219 )
Updates `tokio` from 1.43.0 to 1.44.0
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.43.0...tokio-1.44.0 )
Updates `indexmap` from 2.7.1 to 2.8.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/main/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.7.1...2.8.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 08:29:38 -05:00
Alexander Brassel
82f8ac208f
Improve %% escaping error message ( #13018 )
2025-03-04 10:03:11 -06:00
dependabot[bot]
9440feae7c
build(deps): bump the rust-dependencies group with 11 updates ( #13017 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-03 18:09:43 -06:00
Michael Davis
0efa8207d8
Rewrite command line parsing, add flags and expansions ( #12527 )
...
Co-authored-by: Pascal Kuthe <pascalkuthe@pm.me>
2025-02-26 19:50:15 -06:00
dependabot[bot]
48194825b9
build(deps): bump the rust-dependencies group with 3 updates ( #12903 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-17 17:36:50 -06:00