Skip to content

Update properties type deemed optional in spec to TOptional... - #159

Open
oisanjaya wants to merge 1 commit into
genericptr:trunkfrom
oisanjaya:remove_optional_fields
Open

Update properties type deemed optional in spec to TOptional...#159
oisanjaya wants to merge 1 commit into
genericptr:trunkfrom
oisanjaya:remove_optional_fields

Conversation

@oisanjaya

Copy link
Copy Markdown

Some LSP client (Zed) not behaving correctly if theese properties exists even if it has 'falsy' value. Updating to TOptional so they can be set nil and not incorporated during JSON serialization.

Affected properties:

TDiagnostic.fCode: TOptionalInteger;
TDiagnostic.Source: TOptionalString;
TCompletionItem.fDetail: TOptionalString;
TCompletionItem.fSortText: TOptionalString;
TCompletionItem.fFilterText: TOptionalString;
TCompletionItem.fInsertText: TOptionalString;
TDocumentSymbol.fDetail: TOptionalString;
TClientInfo.fVersion: TOptionalString;
TInlayHint.fTooltip: TOptionalString;

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

Successfully merging this pull request may close these issues.

1 participant