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

Based on the 'elp -h' help, I used the 'elp config' command to print out the configuration. How can I use this configuration in my own VS Code settings? #62

Open
imLaoYang opened this issue Nov 2, 2024 · 1 comment

Comments

@imLaoYang
Copy link

Or, how to use the "elp config" command and subsequent configuration?

@imLaoYang imLaoYang changed the title Based on the elp -h prompt, I used the elp config command to print out the configuration. How can I use this configuration in my own VS Code settings? Based on the 'elp -h' help, I used the 'elp config' command to print out the configuration. How can I use this configuration in my own VS Code settings? Nov 2, 2024
@alanz
Copy link
Member

alanz commented Nov 4, 2024

This feature is intended for people who are adding LSP client support in an IDE.
Those settings should match the ones in editors/code/package.json

"elp.ai.enable": {
"default": false,
"markdownDescription": "Enable support for AI-based completions.",
"type": "boolean"
},
"elp.diagnostics.disabled": {
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "List of ELP diagnostics to disable.",
"type": "array",
"uniqueItems": true
},
"elp.diagnostics.enableExperimental": {
"default": false,
"markdownDescription": "Whether to show experimental ELP diagnostics that might\nhave more false positives than usual.",
"type": "boolean"
},
"elp.diagnostics.enableOtp": {
"default": false,
"markdownDescription": "Whether to report diagnostics for OTP files.",
"type": "boolean"
},
"elp.eqwalizer.all": {
"default": false,
"markdownDescription": "Whether to report Eqwalizer diagnostics for the whole project and not only for opened files.",
"type": "boolean"
},
"elp.eqwalizer.chunkSize": {
"default": 100,
"markdownDescription": "Chunk size to use for project-wide eqwalization.",
"minimum": 0,
"type": "integer"
},
"elp.eqwalizer.maxTasks": {
"default": 32,
"markdownDescription": "Maximum number of tasks to run in parallel for project-wide eqwalization.",
"minimum": 0,
"type": "integer"
},
"elp.hoverActions.docLinks.enable": {
"default": false,
"markdownDescription": "Whether to show Hover Actions of type 'docs'. Only applies when\n`#elp.hoverActions.enable#` is set.",
"type": "boolean"
},
"elp.hoverActions.enable": {
"default": false,
"markdownDescription": "Whether to show Hover Actions.",
"type": "boolean"
},
"elp.inlayHints.parameterHints.enable": {
"default": true,
"markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.",
"type": "boolean"
},
"elp.lens.debug.enable": {
"default": false,
"markdownDescription": "Whether to show the `Debug` lenses. Only applies when\n`#elp.lens.enable#` is set.",
"type": "boolean"
},
"elp.lens.enable": {
"default": false,
"markdownDescription": "Whether to show Code Lenses in Erlang files.",
"type": "boolean"
},
"elp.lens.links.enable": {
"default": false,
"markdownDescription": "Whether to show the `Link` lenses. Only applies when\n`#elp.lens.enable#` is set.",
"type": "boolean"
},
"elp.lens.run.coverage.enable": {
"default": false,
"markdownDescription": "Display code coverage information when running tests via the\nCode Lenses. Only applies when `#elp.lens.enabled` and\n`#elp.lens.run.enable#` are set.",
"type": "boolean"
},
"elp.lens.run.enable": {
"default": false,
"markdownDescription": "Whether to show the `Run` lenses. Only applies when\n`#elp.lens.enable#` is set.",
"type": "boolean"
},
"elp.lens.run.interactive.enable": {
"default": false,
"markdownDescription": "Whether to show the `Run Interactive` lenses. Only applies when\n`#elp.lens.enable#` is set.",
"type": "boolean"
},
"elp.log": {
"default": "error",
"markdownDescription": "Configure LSP-based logging using env_logger syntax.",
"type": "string"
},
"elp.signatureHelp.enable": {
"default": true,
"markdownDescription": "Whether to show Signature Help.",
"type": "boolean"
},
"elp.typesOnHover.enable": {
"default": false,
"markdownDescription": "Display types when hovering over expressions.",
"type": "boolean"
}
}

If not, feel free to make a pull request on it to update them. We need help on the extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants