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

plugin: add showDeprecated support #9721

Merged
merged 1 commit into from
Jul 14, 2021
Merged

plugin: add showDeprecated support #9721

merged 1 commit into from
Jul 14, 2021

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes: #8557

The pull-request adds support for the editor.showDeprecated preference which styles deprecated code in editors with a strike-through. The diagnostic is contributed by language-servers:

image

How to test

  1. update the vscode-builtin-typescript-language-features extension to 1.57.1 in the package.json.
  2. start the application with the changes, and use theia as a workspace folder.
  3. open keymaps-service.ts and navigate to line 140
  4. uses of context (deprecated) should have the deprecated strike-through.

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

@vince-fugnitto vince-fugnitto added monaco issues related to monaco vscode issues related to VSCode compatibility labels Jul 9, 2021
Copy link
Contributor

@alvsan09 alvsan09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that it works as expected, there is some latency to apply the markings but that is something to investigate separately. 👍

image

The commit adds support for the `showDeprecated` monaco editor option
which is contributed by language-servers to display deprecated
strike-throughs in code which is deprecated.

Signed-off-by: vince-fugnitto <[email protected]>
@tsmaeder tsmaeder merged commit 6125352 into master Jul 14, 2021
@github-actions github-actions bot added this to the 1.16.0 milestone Jul 14, 2021
@vince-fugnitto vince-fugnitto deleted the vf/showDeprecated branch July 14, 2021 12:02
dna2github pushed a commit to dna2fork/theia that referenced this pull request Aug 25, 2021
The commit adds support for the `showDeprecated` monaco editor option
which is contributed by language-servers to display deprecated
strike-throughs in code which is deprecated.

Signed-off-by: vince-fugnitto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
monaco issues related to monaco vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support deprecated strikethrough directly in the editor
4 participants