ben-gibson / GitLink

A Jetbrains plugin that opens a local file under Git version control in its remote host using the default browser.
https://plugins.jetbrains.com/plugin/8183-gitlink
MIT License
671 stars 58 forks source link

Azure DevOps line selection not preserved #248

Closed Bouke closed 1 year ago

Bouke commented 1 year ago

The selection I've made in Rider isn't preserved and the generated link always seems to reference a single line. A single line selection isn't obvious in the UI, as it doesn't highlight anything.

The generated link is something along these lines:

https://dev.azure.com/organization/Project/_git/Repository?version=COMMIT&path=PATH&line=475&lineEnd=475&lineStartColumn=1&lineEndColumn=1

Produces this:

image

Whereas the following link is produced by Azure DevOps when selecting a single line:

https://dev.azure.com/organization/Project/_git/Repository?version=COMMIT&path=PATH&line=475&lineEnd=476&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents

Produces this:

image

Multi-line selection is also possible, including column offsets:

https://dev.azure.com/organization/Project/_git/Repository?path=PATH&version=COMMIT&line=473&lineEnd=474&lineStartColumn=9&lineEndColumn=39&lineStyle=plain&_a=contents

Producing this:

image
ben-gibson commented 1 year ago

This may be a little better in the latest version 4.2.3