-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
meson: support settings overrides from editor #306
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -693,11 +693,38 @@ namespace Lsp { | |
public TextDocumentClientCapabilities textDocument { get; set; default = new TextDocumentClientCapabilities (); } | ||
} | ||
|
||
/** | ||
* (Custom) Editor type for {@link EditorOptions} | ||
*/ | ||
enum EditorType { | ||
UNKNOWN = 0, | ||
VSCODE = 1 | ||
} | ||
|
||
/** | ||
* (Custom) extra settings and capabilities of the editor. | ||
* These may be overrides for projects. This is not LSP-specific. | ||
*/ | ||
class EditorOptions : Object { | ||
public EditorType editorType { get; set; } | ||
lw64 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
public string[] mesonConfigureOptions { get; set; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe arrays arent "native" gobject properties, so they probably cannot be serialized automatically. I guess you need to implement the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the exception is |
||
public string[] mesonCompileOptions { get; set; } | ||
private string? _mesonBuildDir; | ||
public string? mesonBuildDir { | ||
get { return _mesonBuildDir; } | ||
set { | ||
if (value != null && value.length > 0) | ||
_mesonBuildDir = value; | ||
} | ||
} | ||
} | ||
|
||
class InitializeParams : Object { | ||
public int processId { get; set; } | ||
public string? rootPath { get; set; } | ||
public string? rootUri { get; set; } | ||
public ClientCapabilities capabilities { get; set; default = new ClientCapabilities (); } | ||
public EditorOptions? initializationOptions { get; set; } | ||
} | ||
|
||
class SignatureInformation : Object, Json.Serializable { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the cancellable error isnt handled here I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is intentional. In the case of cancellation, we want to back out of configuring the Meson build entirely.