jtulach opened a new pull request, #6088:
URL: https://github.com/apache/netbeans/pull/6088

   I am trying to provide [structure view for Enso VSCode 
extension](https://github.com/enso-org/enso/tree/develop/tools/enso4igv#building-vscode-extension)
 via 
[StructureProvider](https://bits.netbeans.org/18/javadoc/org-netbeans-api-lsp/org/netbeans/spi/lsp/StructureProvider.html).
 While debugging why it is no working, I realized that there is an unnecessary 
dependency on `LineDocument` at a lot of places which prevents my 
implementation of `StructureProvider` to be called.
   
   NetBeans IDE is supposed to work with any `StyledDocument`. Additional 
operations are abstracted into 
[NbDocument](https://bits.netbeans.org/18/javadoc/org-openide-text/org/openide/text/NbDocument.html)
 with _effective delegation_ to NetBeans editor implementation and _reasonable 
fallback_ for other `StyledDocument` implementations.
   
   8063d3662809cf4cdae3c340ef962ae17028c6d2 replaces `LineDocument` usage with 
`NbDocument`. eb6e98ac3c74e7cff67b05338eb8c53313539589 refactors 
`FormatterDocument` away from `TextDocumentServiceImpl` - so we can remove 
`import` of `LineDocument` from the `TextDocumentServiceImpl` class.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to