Skip to content

Commit bf0117d

Browse files
AndrewDantAndrew DantAndreasArvidsson
authored
small clarification for goToLine documentation (#15)
This distinction had me confused for a little bit today so I thought I would document it. Happy to make any adjustments to the exact text. --------- Co-authored-by: Andrew Dant <andrew.dant@clario.com> Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
1 parent 79f96b4 commit bf0117d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Many of the commands take arguments and return values that can only be used with
4848
- `andreas.focusTab(hint: string)`
4949
Focus tab by hint. Hints range [A-ZZ].
5050
- `andreas.goToLine(line: number)`
51-
Go to line number.
51+
Go to line number. 0-based index.
5252
- `andreas.selectTo(line: number)`
5353
Select from current location to specified line.
5454
- `andreas.lineMiddle()`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
{
188188
"command": "andreas.goToLine",
189189
"category": "Andreas",
190-
"title": "Go to line number."
190+
"title": "Go to line number. 0-based index."
191191
},
192192
{
193193
"command": "andreas.selectTo",

src/commands/commands.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ export const commandDescriptions = {
8585
"(index: number)"
8686
),
8787
focusTab: visible("Navigation", "Focus tab by hint.", "Hints range [A-ZZ].", "(hint: string)"),
88-
goToLine: visible("Navigation", "Go to line number.", undefined, "(line: number)"),
88+
goToLine: visible(
89+
"Navigation",
90+
"Go to line number. 0-based index.",
91+
undefined,
92+
"(line: number)"
93+
),
8994
selectTo: visible(
9095
"Navigation",
9196
"Select from current location to specified line.",

0 commit comments

Comments
 (0)