Merge pull request #464 from devchat-ai/refactor/selection-range-adjustment-#291
Fix Docstring Function Selection Range to Include Last Line
This commit is contained in:
commit
78aa781dc9
@ -470,7 +470,7 @@ export function registerCodeLensRangeCommand(context: vscode.ExtensionContext) {
|
|||||||
if (editor) {
|
if (editor) {
|
||||||
const range = new vscode.Range(
|
const range = new vscode.Range(
|
||||||
new vscode.Position(pos.start, 0),
|
new vscode.Position(pos.start, 0),
|
||||||
new vscode.Position(pos.end, 0)
|
new vscode.Position(pos.end+1, 0)
|
||||||
);
|
);
|
||||||
editor.selection = new vscode.Selection(range.start, range.end);
|
editor.selection = new vscode.Selection(range.start, range.end);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user