implement code folding

This commit is contained in:
FalsePattern 2023-07-29 16:48:28 +02:00
parent df2f732db9
commit 30552c9000
Signed by: falsepattern
GPG key ID: FDF7126A9E124447
3 changed files with 10 additions and 2 deletions

View file

@ -13,6 +13,7 @@ That's it. (for now)
Feature tracker:
- Working:
- Code completion
- Code folding
- Syntax highlighting
- Go to definition
- Rename symbol

View file

@ -26,8 +26,11 @@ repositories {
dependencies {
compileOnly(libs.annotations)
//TODO Switch back to upstream once https://github.com/ballerina-platform/lsp4intellij/pull/331 is merged.
implementation("com.github.FalsePattern:lsp4intellij:41c9341dc9")
//TODO Switch back to upstream once:
// - https://github.com/ballerina-platform/lsp4intellij/pull/327 (with the extra fixes)
// - https://github.com/ballerina-platform/lsp4intellij/pull/331
// Are merged.
implementation("com.github.FalsePattern:lsp4intellij:f385bbb726")
}
intellij {

View file

@ -45,6 +45,10 @@
<renamePsiElementProcessor implementation="org.wso2.lsp4intellij.contributors.rename.LSPRenameProcessor"
id="LSPRenameProcessor" order="first"/>
<!-- needed for folding support -->
<lang.foldingBuilder language="Zig"
implementationClass="org.wso2.lsp4intellij.contributors.LSPFoldingRangeProvider" id="LSPFoldingRangeProvider" order="first" />
<!-- endregion LSP4IntelliJ -->
<fileType name="Zig File"