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

[semantic][typescript] Semantic highlighting for imports should be optional #93017

Closed
arkthur opened this issue Mar 19, 2020 · 13 comments
Closed
Assignees
Labels
feature-request Request for new features or functionality semantic-tokens Semantic tokens issues typescript Typescript support issues
Milestone

Comments

@arkthur
Copy link

arkthur commented Mar 19, 2020

In 1.43.1, it was decided that imports should no longer have semantic highlighting, but in #92740 there is an answer that shows that I'm not the only one who actually liked that feature and find it useful. I hope you consider for next upgrade to at least make it optional. Thanks in advance.

@davelsan
Copy link

davelsan commented Mar 19, 2020

Thanks for this issue. I actually spent a while debugging this, and even reported it, not checking whether it might be a feature.

Needless to say I second this proposal. Semantic highlighting in imports help me to quickly identify the type of whatever I am importing into the component.

@aeschli aeschli self-assigned this Mar 19, 2020
@aeschli aeschli added typescript Typescript support issues semantic-tokens Semantic tokens issues labels Mar 25, 2020
@aeschli aeschli added this to the March 2020 milestone Mar 25, 2020
@aeschli aeschli changed the title Semantic highlighting for imports should be optional [semantic][typescript] Semantic highlighting for imports should be optional Mar 25, 2020
@aeschli aeschli modified the milestones: March 2020, April 2020 Mar 30, 2020
@varog-norman
Copy link

I also like this feature and hope it will be available next releases

@Saschamz
Copy link

I'm running VSCode version 1.42 for this feature alone so I also second this 😄

@aeschli aeschli modified the milestones: April 2020, May 2020 Apr 27, 2020
@arkthur
Copy link
Author

arkthur commented May 16, 2020

Hi, @aeschli. Are there any news about this feature? All I've seen is this has been delayed twice. Many people still using 1.42 because of this, including me. Is this ever going to be done? If not, I think you should say something, so we can go use some other editor/IDE that gives us what we want/need without having to stop updates.

@aeschli
Copy link
Contributor

aeschli commented May 18, 2020

It's still on my list, but there's always other things coming up.
Anyone want to give a try, I can give some infos where to begin.

@arkthur
Copy link
Author

arkthur commented May 18, 2020

Anyone want to give a try, I can give some infos where to begin.

@aeschli I'd be glad to give it a try. Hope I have what's needed. Please, give me the info I need and I'll give this as much time as I can spare.

@aeschli
Copy link
Contributor

aeschli commented May 19, 2020

Semantic highlighting is implemented in a TypeScipt server plugin: https://github.com/aeschli/typescript-vscode-sh-plugin
The client part for semantic highlighting is here https://github.com/microsoft/vscode/blob/master/extensions/typescript-language-features/src/features/semanticTokens.ts

To send settings from the typescipt client to the plugin on the server, there's an API:

public setConfiguration(pluginId: string, config: {}) {

  • define a new setting for the typesccript extension
  • in /semanticTokens.ts, read and observe the setting and send it to the plugin
  • in the plugin use the setting

@aeschli aeschli modified the milestones: May 2020, June 2020 Jun 4, 2020
@aeschli aeschli modified the milestones: June 2020, Backlog Jun 29, 2020
@aeschli
Copy link
Contributor

aeschli commented Jun 29, 2020

The typescript team is working on adopting our semantic highlighting code to the ts server, see microsoft/TypeScript#39119.
One done, we will move this issue in the TypeScript repo.

@arkthur
Copy link
Author

arkthur commented Nov 4, 2020

The typescript team is working on adopting our semantic highlighting code to the ts server, see microsoft/TypeScript#39119.
One done, we will move this issue in the TypeScript repo.

Is there any news about this?

@aeschli aeschli added the feature-request Request for new features or functionality label Nov 6, 2020
@EliasGcf
Copy link

EliasGcf commented Apr 8, 2021

The typescript team is working on adopting our semantic highlighting code to the ts server, see microsoft/TypeScript#39119.
One done, we will move this issue in the TypeScript repo.

Is there any news about this?

I also would like to know it

@aeschli
Copy link
Contributor

aeschli commented Apr 12, 2021

Yes, semantic highlighting for TS/JS is now part of TypeScript.

@aeschli
Copy link
Contributor

aeschli commented Apr 12, 2021

@arkthur @EliasGcf Do you want to file a new issue against https://github.com/microsoft/TypeScript/issues ?
The Transfer Issue feature doesn't work for this as I'm not a team member of TypeScipt and I think it's better if the new issue is filed by an interested party.

@aeschli
Copy link
Contributor

aeschli commented Oct 22, 2021

Closing. Please file an issue against TypeScript if still needed

@aeschli aeschli closed this as completed Oct 22, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality semantic-tokens Semantic tokens issues typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

6 participants