> On Apr 28, 2020, at 4:04 PM, Michael Van Canneyt <mich...@freepascal.org> > wrote: > > You can do what most VSCode/Atom project managers seem to, add package.json > or somesuch: > > { > "pascal-lsp" : { > "projectfile" : "yourproject.pas", > "searchpath" : ["a","b"] > } > }
Yes, that's what the plugin for Sublime Text does also. Users will have to provide a "initializationOptions" to the language server which contains extra information. It would also be possible to add a lazarus project file and get the options from there but I'll let a lazarus user implement that later. Here's what I have now from a ST project file (which is plain JSON): "settings": { "LSP": { "pascal-language-server": { "enabled": true, "initializationOptions": { "FPCOptions": [ "-Fu./sources" ], "program": "./Main.pas" } } }, .... Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal