Open object88 opened 6 years ago
Workspace APIs such as LocateDeclaration expect a 1s based numbering system. ChangeFile expects a 0s based system.
package foo var Foof int = 1 func Foo() int { return Foof }
Calling LocateDeclaration for Foof in return Foof is (4, 9). The same for ChangeFile is (3, 8).
Foof
return Foof
The numbering systems must be consistent.
Workspace APIs such as LocateDeclaration expect a 1s based numbering system. ChangeFile expects a 0s based system.
Calling LocateDeclaration for
Foof
inreturn Foof
is (4, 9). The same for ChangeFile is (3, 8).The numbering systems must be consistent.