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

change codeLens.separator accoding to filetype comment char #4978

Closed
leoatchina opened this issue Apr 12, 2024 · 2 comments · Fixed by #4980
Closed

change codeLens.separator accoding to filetype comment char #4978

leoatchina opened this issue Apr 12, 2024 · 2 comments · Fixed by #4980

Comments

@leoatchina
Copy link

leoatchina commented Apr 12, 2024

Is your feature request related to a problem? Please describe.
s there any way to change code lens symbol like a coment string , according to buffer's filetype.

Describe the solution you'd like
For examples, Python use #, c/cpp/rust use // as codeLens.separator

Describe alternatives you've considered
No

fannheyward added a commit that referenced this issue Apr 12, 2024
change to `language-overridable`

Closes #4978
@fannheyward
Copy link
Member

fannheyward commented Apr 12, 2024

Changed the scope of codeLens configurations to language-overridable, we now can set different separator for different languages.

  "[python]": {
    "codeLens.separator": "#"
  },
  "[c][typescript]": {
    "codeLens.separator": "//"
  },

I don't want to use commentstring directly.

fannheyward added a commit that referenced this issue Apr 12, 2024
change to `language-overridable`

Closes #4978
@leoatchina
Copy link
Author

Ok, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants