I've installed both the FreePascal compiler and OmniPascal extension for Visual Studio Code, but code completion doesn't work.
In the manual, you are saying that I need to write the path to the Delphi compiler in the user settings, but nothing is said about FPC.
omnipascal.freePascalSourcePath
setting to the folder that contains the FreePascal sources omnipascal.defaultDevelopmentEnvironment
setting to FreePascal
Example:
"omnipascal.freePascalSourcePath": "C:\\lazarus\\fpc"
"omnipascal.defaultDevelopmentEnvironment": "FreePascal"
This will instruct the OmniPascal language server to lookup Pascal units (.pas
and .pp
files) in that directory and all its subtrees recursively.