-
Notifications
You must be signed in to change notification settings - Fork 116
semanticTokens #3510
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
base: develop
Are you sure you want to change the base?
semanticTokens #3510
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements semantic tokens support for BSL (1C BSL Language Server), providing enhanced syntax highlighting capabilities. The feature enables IDEs to display different token types with appropriate visual styling based on their semantic meaning.
- Adds comprehensive semantic tokens provider with support for keywords, strings, numbers, comments, functions, methods, variables, parameters, macros, decorators, operators, and namespaces
- Implements semantic tokens legend configuration defining the supported token types
- Integrates semantic tokens functionality into the BSL language server capabilities and text document service
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
SemanticTokensProviderTest.java | Comprehensive test suite validating semantic token emission for various BSL language constructs |
SemanticTokensLegendConfiguration.java | Spring configuration defining the semantic tokens legend with supported token types |
SemanticTokensProvider.java | Core provider implementation that analyzes BSL code and generates semantic tokens |
BSLTextDocumentService.java | Integration of semantic tokens provider into the text document service |
BSLLanguageServer.java | Registration of semantic tokens capability in server initialization |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...test/java/com/github/_1c_syntax/bsl/languageserver/providers/SemanticTokensProviderTest.java
Show resolved
Hide resolved
...test/java/com/github/_1c_syntax/bsl/languageserver/providers/SemanticTokensProviderTest.java
Show resolved
Hide resolved
...test/java/com/github/_1c_syntax/bsl/languageserver/providers/SemanticTokensProviderTest.java
Show resolved
Hide resolved
|
|
Описание
Связанные задачи
Closes
Чеклист
Общие
gradlew precommit
)Для диагностик
Дополнительно