Visualstudio: Extra line included when `Open on GitHub` is called with a selection

Created on 8 Aug 2018  路  4Comments  路  Source: github/VisualStudio

  • GitHub Extension for Visual Studio version: 2.5.5

NOTE: Use the keyboard rather than the mouse to select:

  1. Select a range in the code editor
    image
  2. Right-click, GitHub > Open on GitHub
  • Browser opens with extra line selected
    image

Alternatively:

  1. Select a range in the code editor
    image
  2. Right-click, GitHub > Copy link to clipboard
  3. Right-click, GitHub > Open from clipboard
  • An extra line is selected
    image
bug

All 4 comments

Good catch!

Actually, I'm having a hard time reproducing this behavior. The right lines always seem to be highlighted for me.

Actually, I'm having a hard time reproducing this behavior. The right lines always seem to be highlighted for me.

You'll probably find this happens when using the keyboard rather than the mouse to select. The reason is that you'll tend to start (or end) the selection on the line below the selected area. If you start your selection at the bottom, this extra line will be completely invisible. If you start your selection at the top, this extra line will be obscured by the blinking caret.

I'm guessing that whoever tested this in the past used the mouse. Initially I was confused because it seemed to sometimes happen and sometimes not happen.

Does that make sense?

Was this page helpful?
0 / 5 - 0 ratings