Skip to content

Commit

Permalink
Changed the TODO into a clear note about the assumption being made fo…
Browse files Browse the repository at this point in the history
…r future maintainers.
  • Loading branch information
SCWells72 authored and angelozerr committed Dec 7, 2024
1 parent a687d6a commit 6826ce3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ public class LSPFoldingRangeBuilder extends CustomFoldingBuilder {

private static final Logger LOGGER = LoggerFactory.getLogger(LSPFoldingRangeBuilder.class);

// TODO: Can this be derived from the language server? If not, these are the standard for modern languages
// NOTE: JetBrains has maintained a long assumption that these are the primary structural block delimiters via
// AbstractFileType's explicit support for them. If/when other structural block delimiters are discovered for
// languages supported by LSP, we can revisit this hard-coded assumption.
private static final Map<Character, Character> BRACE_PAIR_CHARS_FWD = Map.of(
'{', '}',
'[', ']',
Expand Down

0 comments on commit 6826ce3

Please sign in to comment.