-
Notifications
You must be signed in to change notification settings - Fork 134
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
Not all integer properties are indicated as such in the spec #90
Comments
It seems reasonable for items such as Thank you for for providing clarification. |
The initial implementation of lsp4j.debug used Long to map JSON's integer values as the debug protocol spec did not provide range information. See also microsoft/debug-adapter-protocol#90
The initial implementation of lsp4j.debug used Long to map JSON's integer values as the debug protocol spec did not provide range information. See also microsoft/debug-adapter-protocol#90
The initial implementation of lsp4j.debug used Long to map JSON's integer values as the debug protocol spec did not provide range information. See also microsoft/debug-adapter-protocol#90
@weinand can we get a confirmation that these should be 32-bits in the spec? LSP4J wants to do a release soon and we are assuming that based on the referenced issues that this is indeed supposed to be 32-bit integers. |
…d of Long The initial implementation of lsp4j.debug used Long to map JSON's integer values as the debug protocol spec did not provide range information. See also microsoft/debug-adapter-protocol#90
I would recommend following the convention used by the Language Server Protocol of defining a custom base type in the TypeScript spec. This way, it will be clear that the type is The type definition copied from LSP: /**
* Defines an integer number in the range of -2^31 to 2^31 - 1.
*/
export type integer = number; |
Saw this referenced while looking through another issue. I propose adding the following to the "Content Part" of the overview.md:
I believe this restriction to be appropriate based on a review of type usage. As long as there are no files more than |
@connor4312 I fully agree with your assessment. |
I realize I may not have been clear in my description, but the change in #357 doesn't solve the issue I was trying to describe. This wasn't about just specifying what Basically, the source of truth seems to be the JSON schema. But the published specification that is auto-generated from that schema does not properly retain the |
Since the auto-generated spec file uses TypeScript to represent the protocol, the
integer
type from the schema is converted tonumber
. This is mitigated in some places that have "The value should be less than or equal to 2147483647 (2^31 - 1)." as part of the comment, but that is not universally included forinteger
properties.Continuation from #62 and #63
The text was updated successfully, but these errors were encountered: