Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP Support #1006

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 79 additions & 47 deletions .vscode/metacoq.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,91 @@

// A list of arguments to send to coqtop. Use seperate elements instead of spaces to seperate each argument, especially when a flag expects another trailing argument, e.g. `["-I","./bin"]` instead of `["-I ./bin"]`
"coqtop.args": [





"-R", "safechecker-plugin/theories","MetaCoq.SafeCheckerPlugin",

"-R", "utils/theories","MetaCoq.Utils",
"-R", "common/theories","MetaCoq.Common",
"-R", "template-pcuic/theories","MetaCoq.TemplatePCUIC",

"-I", "template-coq",
// "-bt", get backtraces from Coq on errors
"-I", "template-coq/build",
// "-bt", // get backtraces from Coq on errors
"-R", "utils/theories", "MetaCoq.Utils",
"-R", "common/theories", "MetaCoq.Common",
"-R", "template-coq/theories", "MetaCoq.Template",
"-I", "template-coq",
"-I", "template-coq/src",
"-R", "pcuic/theories", "MetaCoq.PCUIC",
"-I", "pcuic",
"-I", "pcuic/src",
"-R", "template-pcuic/theories", "MetaCoq.TemplatePCUIC",
"-R", "safechecker/theories", "MetaCoq.SafeChecker",
"-R", "safechecker-plugin/theories", "MetaCoq.SafeCheckerPlugin",
"-I", "safechecker-plugin",
"-I", "safechecker-plugin/src",
"-R", "erasure/theories", "MetaCoq.Erasure",
"-R", "erasure-plugin/theories", "MetaCoq.ErasurePlugin",
"-I", "erasure-plugin",
"-I", "erasure-plugin/src",
"-R", "translations", "MetaCoq.Translations",
"-R", "quotation/theories", "MetaCoq.Quotation",
"-R", "test-suite", "MetaCoq.TestSuite",
"-R", "test-suite/plugin-demo/theories", "MetaCoq.ExtractedPluginDemo",
"-I", "test-suite/plugin-demo",
"-I", "test-suite/plugin-demo/src",
"-R", "examples", "MetaCoq.Examples",
"-R", "checker/theories" "MetaCoq.Checker",
"-R", "pcuic/theories","MetaCoq.PCUIC",
"-I", "safechecker/src",
"-R", "safechecker/theories","MetaCoq.SafeChecker",
"-I", "erasure/src",
"-R", "erasure/theories","MetaCoq.Erasure",
"-R", "erasure-plugin/theories","MetaCoq.ErasurePlugin",
"-R", "translations","MetaCoq.Translations",
"-R", "test-suite/plugin-demo/theories","MetaCoq.ExtractedPluginDemo",
"-R", "test-suite","MetaCoq.TestSuite",
],
"vscoq.args": [
// "-bt", // get backtraces from Coq on errors
"-R", "utils/theories", "MetaCoq.Utils",
"-R", "common/theories", "MetaCoq.Common",
"-R", "template-coq/theories", "MetaCoq.Template",
"-I", "template-coq",
"-I", "template-coq/src",
"-R", "pcuic/theories", "MetaCoq.PCUIC",
"-I", "pcuic",
"-I", "pcuic/src",
"-R", "template-pcuic/theories", "MetaCoq.TemplatePCUIC",
"-R", "safechecker/theories", "MetaCoq.SafeChecker",
"-R", "safechecker-plugin/theories", "MetaCoq.SafeCheckerPlugin",
"-I", "safechecker-plugin",
"-I", "safechecker-plugin/src",
"-R", "erasure/theories", "MetaCoq.Erasure",
"-R", "erasure-plugin/theories", "MetaCoq.ErasurePlugin",
"-I", "erasure-plugin",
"-I", "erasure-plugin/src",
"-R", "translations", "MetaCoq.Translations",
"-R", "quotation/theories", "MetaCoq.Quotation",

"-R", "test-suite", "MetaCoq.TestSuite",
"-R", "test-suite/plugin-demo/theories", "MetaCoq.ExtractedPluginDemo",
"-I", "test-suite/plugin-demo",
"-I", "test-suite/plugin-demo/src",
"-R", "examples", "MetaCoq.Examples",
],
"coq-lsp.args": [
// "-bt", // get backtraces from Coq on errors
"-R", "utils/theories,MetaCoq.Utils",
"-R", "common/theories,MetaCoq.Common",
"-R", "template-coq/theories,MetaCoq.Template",
"-I", "template-coq",
"-I", "template-coq/src",
"-R", "pcuic/theories,MetaCoq.PCUIC",
"-I", "pcuic",
"-I", "pcuic/src",
"-R", "template-pcuic/theories,MetaCoq.TemplatePCUIC",
"-R", "safechecker/theories,MetaCoq.SafeChecker",
"-R", "safechecker-plugin/theories,MetaCoq.SafeCheckerPlugin",
"-I", "safechecker-plugin",
"-I", "safechecker-plugin/src",
"-R", "erasure/theories,MetaCoq.Erasure",
"-R", "erasure-plugin/theories,MetaCoq.ErasurePlugin",
"-I", "erasure-plugin",
"-I", "erasure-plugin/src",
"-R", "translations,MetaCoq.Translations",
"-R", "quotation/theories,MetaCoq.Quotation",
"-R", "test-suite,MetaCoq.TestSuite",
"-R", "test-suite/plugin-demo/theories,MetaCoq.ExtractedPluginDemo",
"-I", "test-suite/plugin-demo",
"-I", "test-suite/plugin-demo/src",
"-R", "examples,MetaCoq.Examples",
],

// When enabled, will trim trailing whitespace when saving a file.
"files.trimTrailingWhitespace": true,
"coqtop.binPath": "_opam/bin",
"vscoq.path": "_opam/bin/vscoqtop",
"coq-lsp.path": "_opam/bin/coq-lsp",
"files.exclude": {
"**/*.vo": true,
"**/*.vok": true,
Expand All @@ -54,25 +106,5 @@
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"coq-lsp.args": [
"-R", "safechecker-plugin/theories,MetaCoq.SafeCheckerPlugin",
"-R", "utils/theories,MetaCoq.Utils",
"-R", "common/theories,MetaCoq.Common",
"-R", "template-pcuic/theories,MetaCoq.TemplatePCUIC",

"-I", "template-coq",
//"-bt", // get backtraces from Coq on errors
//"-Itemplate-coq/build",
"-R", "template-coq/theories,MetaCoq.Template",
"-R", "examples,MetaCoq.Examples",
"-R", "pcuic/theories,MetaCoq.PCUIC",
"-R", "safechecker/theories,MetaCoq.SafeChecker",
"-R", "erasure/theories,MetaCoq.Erasure",
"-R", "erasure-plugin/theories,MetaCoq.ErasurePlugin",
"-R", "translations,MetaCoq.Translations",
"-R", "test-suite/plugin-demo/theories,MetaCoq.ExtractedPluginDemo",
"-R", "test-suite,MetaCoq.TestSuite"
],
"coq-lsp.path": "_opam/bin/coq-lsp"
}
}
}
Loading