Chris2011 opened a new issue, #5204:
URL: https://github.com/apache/netbeans/issues/5204

   ### Description
   
   When I register a new language via `@GrammarRegistration(mimeType = 
HttpEditorKit.HTTP_MIME_TYPE, grammar = "http.tmLanguage.json")` those files 
are missing the MultiView support. It was originally disabled in this file: 
https://github.com/apache/netbeans/blob/master/ide/lsp.client/src/org/netbeans/modules/lsp/client/options/GenericDataObject.java#L60.
 Just enable is not enough because the MultiViewElement.Registration is 
missing, which is handled via Annotation as you can see here: 
https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/ide/docker.editor/src/org/netbeans/modules/docker/editor/DockerfileLanguage.java#L68-L76
   
   The problem here is, that the MimeType needs to be a static string, but the 
mimeType of the genericDataObject is dynamic. It looks like x-ext-a, x-ext-b or 
if you change them inside of a concrete json file, which I mentioned here: 
https://github.com/Chris2011/netbeans-textmate-files/blob/master/README.md they 
are still added in a dynamic way.
   
   So atm I dunno how to call the annotation code to add multiview to those 
generic files, but I tried.
   
   ### Use case/motivation
   
   Each textmate based file should have minimum the source and the history view.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
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