-
Notifications
You must be signed in to change notification settings - Fork 803
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
add diagnostic dynamic long description #1825
base: gh-pages
Are you sure you want to change the base?
add diagnostic dynamic long description #1825
Conversation
@microsoft-github-policy-service agree company="Scientific Toolworks, Inc." |
@RobbyCBennett tahnks for the PR. Changing the spec is the easy part :-). To contribute additional functionality to the spec a reference implementation is needed as well. See https://github.com/microsoft/language-server-protocol/blob/main/contributing.md I will keep the PR open for a while but without a reference implementation I will not be able to merge the PR. |
Isn't this a breaking change? Currently, the |
Thank you. I was just looking to get some feedback before the reference implementation is made.
Yes, I will change it to accommodate for language clients that will crash after assuming the Perhaps instead, it could be simplified to be part of |
/** | ||
* An optional property to describe this diagnostic's message with more | ||
* details. For example: | ||
* The type name "int_8_t" is unknown. Did you mean any of these types? | ||
* - int | ||
* - int8_t | ||
* Read more about the built-in types [here](file:///path/to/docs.md). | ||
* | ||
* @since 3.18.0 | ||
*/ | ||
longMessage?: string | MarkupContent; |
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 naming of the property can suggest that it's an alternative version of message
. Not sure if the intention would be that clients show both or choose one.
If the intention is to show both then maybe this should be called description
...
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.
Calling it description
would be too similar to the property called codeDescription
, which is a general/static description of the diagnostic.
In contrast, I thought about calling it longMessage
because it is similar to message
but provides more detail. Perhaps something like messageDetails
would be more appropriate. I think that would infer that message
is still important.
I didn't follow https://github.com/microsoft/language-server-protocol/blob/main/contributing.md because it seems to be intended for adding new types and methods. Reference implementation: Step 1: (this PR)
Step 2: PR in VSCode repo:
Step 3
Step 4 (PR in VSCode Language Server Node repo):
|
#1461