Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6e23135
First cut at semantic token provider.
Jul 2, 2025
cfa7aaf
Fixed formatting issues.
Jul 2, 2025
aeb36f5
Fixed typos
Jul 2, 2025
a4e1e0e
Changed token modifiers from a vector to bit flags to avoid extra mem…
Jul 4, 2025
b5ad248
Changed semantic token function to accept `Option<TextRange>` where `…
Jul 4, 2025
5541bcc
Simplified `semantic_tokens` function to return `SemanticTokens` rath…
Jul 4, 2025
4f4cef6
Changed `SemanticTokens` to implement `Deref` trait and avoid exposin…
Jul 4, 2025
b7e3414
Abstracted out `visit_parameters` and added handling of lambda parame…
Jul 4, 2025
816cf9e
Eliminated the need to sort tokens.
Jul 4, 2025
720163c
Incorporated code review feedback.
Jul 4, 2025
98f356f
Added support for concatenated string literals and bytes string liter…
Jul 4, 2025
7694654
Removed unnecessary use of raw string literals.
Jul 4, 2025
7fb25e5
Refactored tests to use a helper function.
Jul 4, 2025
108a201
Improved tests.
Jul 4, 2025
d58d1f7
Moved semantic token range request handler to its own file.
Jul 4, 2025
8065af4
Added Ranged trait to SemanticToken.
Jul 4, 2025
83cb322
Fixed offset encoding logic.
Jul 4, 2025
a728999
Formatting update
Jul 4, 2025
41ed581
Moved visitor functions as per code review feedback.
Jul 4, 2025
6fd0d9b
Merge branch 'main' into semantic_tokens
UnboundVariable Jul 4, 2025
b50a4f1
Fixed merge-related issues.
Jul 4, 2025
2301ea2
More changes from code review feedback.
Jul 7, 2025
33bf244
More code review feedback.
Jul 7, 2025
77be4e2
Switched to bitflags crate for tracking modifiers.
Jul 7, 2025
f735ebf
More code review changes.
Jul 7, 2025
540413f
Incorporated more code review feedback.
Jul 7, 2025
473a57d
More code review feedback.
Jul 7, 2025
e8483e0
Fixed length and offset encoding logic to honor requested encoding an…
Jul 7, 2025
f0efb01
Converted all semantic token tests to snapshots.
Jul 7, 2025
4264579
Improved classification of parameters.
Jul 7, 2025
3be32e1
Fixed formatting
Jul 7, 2025
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
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions crates/ty_ide/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repository = { workspace = true }
license = { workspace = true }

[dependencies]
bitflags = { workspace = true }
ruff_db = { workspace = true }
ruff_python_ast = { workspace = true }
ruff_python_parser = { workspace = true }
Expand Down
4 changes: 4 additions & 0 deletions crates/ty_ide/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ mod goto;
mod hover;
mod inlay_hints;
mod markup;
mod semantic_tokens;

pub use completion::completion;
pub use db::Db;
pub use goto::goto_type_definition;
pub use hover::hover;
pub use inlay_hints::inlay_hints;
pub use markup::MarkupKind;
pub use semantic_tokens::{
SemanticToken, SemanticTokenModifier, SemanticTokenType, SemanticTokens, semantic_tokens,
};

use ruff_db::files::{File, FileRange};
use ruff_text_size::{Ranged, TextRange};
Expand Down
Loading
Loading