[fpc-pascal] Pascal Language Server
genericptr at gmail.com
Fri Apr 24 15:58:45 CEST 2020
> On Apr 24, 2020, at 4:54 PM, Ryan Joseph <genericptr at gmail.com> wrote:
> I'm not able to get this one working then. Is the buffer the current file? This is what I'm doing:
> URI := ParseURI(textDocument.uri);
> Code := CodeToolBoss.FindFile(URI.Path + URI.Document);
> X := position.character;
> Y := position.line;
> hint := CodeToolBoss.FindSmartHint(Code, X, Y);
> Just returns an empty string but maybe the code buffer is not correct.
Never mind, the line offsets are zero based so I needed to + 1 for code manager. It's working now.
More information about the fpc-pascal