-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allow language server options to be provided in a file during startup. #10
Comments
@davidfestal do you know off-hand what the best way to parse Ceylon's config file format is? |
I suppose there are three relevant settings. Should the prefix be "ceylon.backend": {
"type": "string",
"default": "dart",
"description": "The compiler backend to use. Currently, the Dart and JavaScript backends are supported. Visual Studio Code must be restarted after changing to this setting.",
"enum": [
"dart", "js"
]
},
"ceylon.generateOutput": {
"type": "boolean",
"default": false,
"description": "Write compiled binaries to the output repository (Dart backend only). Note that output is produced regardless of whether or not the source files have been saved."
},
"ceylon.serverLogPriority": {
"type": "string",
"default": "disabled",
"description": "The logging level for the language server. For levels other than 'disabled', a log file will be created for each instance of the extension. Log files will be created in the '/tmp' directory if it exists, or the system default temporary directory otherwise.",
"enum": [
"trace", "debug", "info", "warn", "error", "fatal", "disabled"
]
} |
In fact I'm not even sure that it should follow the Ceylon's config format. It could simply contain the JSON that you would otherwise receive through RPC. |
This file is to be hand edited by users, no? Is there a good reason to break from Ceylon convention? |
then I think that |
@davidfestal this is very specific to Che, so any particular reason for the generic prefix? My concern is that it would cause confusion for VSCode users, depending on the name of the config file, which brings me to... Can we just use the normal Ceylon configuration mechanism? That's a) something the code already looks at, and b) it would allow users to put global configs in With these points, an idea is to have the cli option WDYT? p.s. another argument against |
With any luck at all, the latest push will support
if the CLI arguments I'll leave this open for now in case this doesn't meet @davidfestal's needs, and also because I only did very basic testing. |
fallback to Ceylon configs prefix.backend, prefix.generateOutput, and prefix.serverLogPriority
Some Language server clients (such a Eclipse Che), don't allow sending configuration options through the JsonRPC protocol. In such a case, it would be helpful to be able to provide, as a language server command line parameter, the name of a file that would be searched for in the project
.ceylon
subdirectory and that would contain the LS configuration.Something like:
--override-lsp-config=<file>
This would instruct the LS, when starting on a project, to read the configuration from this file instead of waiting for the configuration JsonRpc message.
The text was updated successfully, but these errors were encountered: