Community
Participate
Working Groups
Created attachment 189308 [details] Holding down Ctrl over "size" on line 4 Given a grammar something like: Model: propertyDefinitions+=PropertyDefinition* propertyAccesses+=PropertyAccess* ; PropertyDefinition: "property" name=ID ; PropertyAccess: object=STRING '.' property=[PropertyDefinition] ; and a document (line numbers for reference only) of the form 1: property size 2: 3: "foo".size 4: "http://www.example.org/".size I can Ctrl-Click easily to navigate to the definition of "size" from the reference on line 3 but the one on line 4 also shows the hyperlink option (so the navigation isn't as simple). It seems to correctly identify the extent of the hyperlink, so it seems odd that it suggests the link after it has finished. Screenshot attached.
i suggest to flip the IHyperlinkDetector registration order in XtextSourceViewerConfiguration#getHyperlinkDetectors (in order to avoid duplication of URLHyperlinkDetector)