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

Unable to cast TextDocumentSyncKind to i32 #285

Closed
fda-odoo opened this issue May 30, 2024 · 0 comments · Fixed by #286
Closed

Unable to cast TextDocumentSyncKind to i32 #285

fda-odoo opened this issue May 30, 2024 · 0 comments · Fixed by #286

Comments

@fda-odoo
Copy link

Hello,

I'm trying to create a TextDocumentChangeRegistrationOptions with the code

let textDocumentChangeRegistrationOptions = TextDocumentChangeRegistrationOptions {
    document_selector: None,
    sync_kind: 1,
};

However, I would want to use TextDocumentSyncKind::FULL instead of '1' for the sync_kind parameter, but no method exists to cast it to an i32, and the inner variable of struct TextDocumentSyncKind is private.
Do I miss something, or the enum TextDocumentSyncKind can't work with this registration option?

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 a pull request may close this issue.

1 participant