pherrymason / c3-lsp

Language Server for C3 Language
https://pherrymason.github.io/c3-lsp/
GNU General Public License v3.0
78 stars 10 forks source link

Allow specifying c3c arguments to allow for --trust=full #69

Closed Dodzey closed 2 months ago

Dodzey commented 2 months ago

Getting errors on the log related to --trust=full as my project uses $exec etc and requires that option to be specified

2024/09/10 20:08:06 output: This target has 'exec' directives, to run it trust level must be set to '--trust=full'.

2024/09/10 20:08:06 An error: exit status 1

Would it be possible to add a setting to be able to specify extra command line arguments?

pherrymason commented 2 months ago

Added in #d163069

pherrymason commented 2 months ago

New option is added in C3.compile-args

{
    "send-crash-reports": true,
    "log-path": "./c3-lsp.log",
    "C3": {
        "version": "0.6.1",
        "compile-args": ["--trust=full"], // <-----------
        "stdlib-path": "/xxxx/c3c/lib/std"
    },
    "Diagnostics": {
        "enabled": true,
        "delay": 2000
    }
}