[fpc-pascal] Pascal Language Server
    Mattias Gaertner 
    nc-gaertnma at netcologne.de
       
    Fri Apr 24 16:28:03 CEST 2020
    
    
  
On Fri, 24 Apr 2020 16:54:43 +0700
Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> > On Apr 24, 2020, at 4:49 PM, Mattias Gaertner via fpc-pascal
> > <fpc-pascal at lists.freepascal.org> wrote: 
> >> When I hover over a function in Lazarus I get a function definition
> >> and unit location. Is that coming from
> >> TCodeManager.FindSmartHint?  
> > 
> > Yes  
> 
> 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);
Still FindFile instead of LoadFile?
Do you get all mails from this list?
>     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.
Mattias
    
    
More information about the fpc-pascal
mailing list