-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Strikeout CompletionItems (and Symbols?) that are deprecated #50972
Comments
(Experimental duplicate detection) |
@jrieken I'm interested in this too, for deprecated html/css properties. |
@ivanvoznyakovsky The only way to currently set whether the property or method is deprecated would be to use |
Raised a couple times previously:
At least we currently should see when using trying to use an @deprecated function (#26541) |
@jcrben Those are issues for language support. This issue is more general, and I think this is an issue to support the When this is done, I would expect more language support would follow. It's possible that some language servers already do set that property but you don't know since VS Code ignores it. Specifically on those issues you posted, I don't agree with the notion that it should be done in a separate extension or that it should use the decorations API. Deprecation is a standard practice in software development, and in the case of JavaScript/TypeScript there is JSDoc to determine this, which is already being parsed and used for other doc tags. |
I'd like something similar to this. I'd like to be able to prevent deprecated things from showing up in the list of suggestions at all. |
@kamranayub's work on this is sitting here: https://github.com/microsoft/vscode/tree/joh/completionsDeprecated. |
This comment has been minimized.
This comment has been minimized.
What a time to be alive... |
Closing. We have the UX for outline, workspace symbols, and completions. The API is proposed and will be finalised in #23927 |
What version of the proposed API did you code this against? |
latest LSP release. Which adds the deprecated property to completion items, workspace and document symbols. completion items worked last week, as per my screenshot. |
enableProposedApi is set to true too. Wasn't necessary last week. |
do you plan to get VS Code support the deprecated properties of the current LSP version? |
LSP and vscode.d.ts are two separate things. The LSP-vscode-client fulfils the vscode.d.ts-contract, e.g it will map the deprecated-field that LSP defines onto the completion item tag that vscode.d.ts defines. The sequence is that we finalise the API next milestone, that LSP adopts the new API, and that things then come together. Since you are on the LSP side and since to my knowledge deprecation is already supported there (but not yet wired up), there is nothing you have to do |
ok, can you please let me know when this is wired up in vscode then? |
Hi Fred,
can you please remove me from your “subscribed”-list?
Thanks.
Best,
Daniel
Daniel Hofinger
Founder & Managing Director, Hofinger Ventures UG
A Mörfelder Landstraße 6-8, 60598 Frankfurt am Main
M +49 177 8431872
E [email protected]
W www.hofinger.xyz
Hofinger Ventures UG (haftungsbeschränkt), Luisenstraße 34, 60316 Frankfurt am Main; Geschäftsführer: Daniel Hofinger; Amtsgericht Frankfurt am Main; HRB 108730; USt.-IdNr.: DE312772958; Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren, Veröffentlichen sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. The information contained in this message is confidential or protected by law. If you are not the intended recipient (or have received this e-mail in error), please notify the sender and delete this message. Any unauthorized publishing or copying of this message or unauthorized distribution of the information contained in this e-mail is strictly prohibited.
…On 26. Aug 2019, 17:41 +0200, Fred Bricon ***@***.***>, wrote:
ok, can you please let me know when this is wired up in vscode then?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I didn't add you. But you can unsubscribe from notifications from this issue by clicking on the "Unsubscribe" button here. |
@fbricon This is already working in VS Code with the proposed API. What you're likely waiting for is support in microsoft/vscode-languageserver-node. |
Hey Fred, I think the |
@jrieken is correct. It is not wired up yet. I only wire up new API if it is at least released in a stable build. I don't make a dependency on Insider in LSP libs (I once did and it confused a lot of users). However you can implement this yourself using a custom middleware if you really need to do so. |
Hi Dirk,
please remove me from CC, thanks.
Best,
Daniel
Daniel Hofinger
Founder & Managing Director, Hofinger Ventures UG
A Mörfelder Landstraße 6-8, 60598 Frankfurt am Main
M +49 177 8431872
E [email protected]
W www.hofinger.xyz
Hofinger Ventures UG (haftungsbeschränkt), Luisenstraße 34, 60316 Frankfurt am Main; Geschäftsführer: Daniel Hofinger; Amtsgericht Frankfurt am Main; HRB 108730; USt.-IdNr.: DE312772958; Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren, Veröffentlichen sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. The information contained in this message is confidential or protected by law. If you are not the intended recipient (or have received this e-mail in error), please notify the sender and delete this message. Any unauthorized publishing or copying of this message or unauthorized distribution of the information contained in this e-mail is strictly prohibited.
…On 27. Aug 2019, 09:09 +0200, Dirk Bäumer ***@***.***>, wrote:
@jrieken is correct. It is not wired up yet. I only wire up new API if it is at least released in a stable build. I don't make a dependency on Insider in LSP libs (I once did and it confused a lot of users).
However you can implement this yourself using a custom middleware if you really need to do so.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@danielhofinger you need to unsubscribe yourself from the issue using the GitHub UI. |
Alright, thanks! @dbaeumer |
I don't think I'm gonna start messing with custom middleware code (don't even know what to do). So I'll just wait for you to wire things up in the insiders build at least |
Ctrl+Space is nice and all but when you are new to a library you just see a list of functions and you won't realize that some of them are deprecated. Would it be possible to add a strikeout line via the
line-through
text-decoration
or some kind of icon overlay to indicate that something is deprecated?The text was updated successfully, but these errors were encountered: