Comments (11)
@beeplin great -- look for that to be in the defaults of the next release and you'll be able to remove those explicit settings
from vscode-gitlens.
Thanks a lot. gitlens looks pretty useful. I'll give it a try this weekend.
from vscode-gitlens.
@beeplin this is by design -- GitLens uses the symbol information provided by vscode to add its CodeLens (and extensions can extend/provide this symbol information). So the Vue extension must be providing a symbol for those classes.
You can control the behavior of the CodeLens via a few GitLens configuration settings (you can find the documentation for each setting here: https://github.com/eamodio/vscode-gitlens#extension-settings):
gitlens.codeLens.location
gitlens.codeLens.locationCustomSymbols
gitlens.codeLens.languageLocations
If you have any of the above set, please let me know how you have them configured.
Also if you upgrade to v2.12.1, you can also set "gitlens.advanced.codeLens.debug" = true
which will add debug information into the CodeLens themselves (symbol name, line range, etc). If you turn that on, and send a screenshot I can help you configure your settings appropriately.
from vscode-gitlens.
thanks. I will feedback to the author of vetur.
from vscode-gitlens.
Hey I'm working on vetur.
VSCode added symbols for html/css in Feb release:
https://code.visualstudio.com/updates/v1_10#_html
If this breaks for vetur, it must be breaking for html too.
@beeplin Would you mind setting gitlens.codeLens.locationCustomSymbols
? Seems this would fix the problem as @eamodio suggested.
from vscode-gitlens.
@octref sorry -- I definitely wasn't suggesting anything was wrong in vetur -- nor do I consider this something "broken" in GitLens. GitLens allows you to configure the CodeLens how ever you want given enough provided symbols from vscode/extensions.
But since css
in html
now add a symbol of class
(which I consider to be a container type symbol) it will render with CodeLens by default (since the default is to render CodeLens at the document and "container" level). I've already added specific default overrides for json
, css
, scss
, less
to only render at the document level. I probably should just add html
and vue
to that.
@octref what is the language type for vue?
from vscode-gitlens.
No worries! Thanks for fast response.
The whole document is language type vue. Each embedded region has embedded language type such as vue-html
, css
, scss
, less
, javascript
, etc.
from vscode-gitlens.
@beeplin can you try the following setting:
"gitlens.codeLens.languageLocations": [
{
"language": "html",
"location": "document"
},
{
"language": "vue",
"location": "document"
},
{
"language": "json",
"location": "document"
},
{
"language": "css",
"location": "document"
},
{
"language": "scss",
"location": "document"
},
{
"language": "less",
"location": "document"
}
];
And let me know if that resolves the issue for you? If so, then I will add those into the defaults for the next release.
from vscode-gitlens.
@eamodio thanks for the quick response! Yes, this setting resolve my issue perfectly.
from vscode-gitlens.
@beeplin it's now in 2.12.2
from vscode-gitlens.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from vscode-gitlens.
Related Issues (20)
- [compare tree] File listed when it doesn't differ, unless committed
- Push command and button push to wrong branch? HOT 3
- Select multiple historical commits and view all differences at once without manually switching files
- no commits could be found
- "Open Changes" with external difftool does not generate the correct command line.
- Git repo is already opened, but it still says to open folder or directory. HOT 4
- Git File Blame: New line causes curser to indent way too much for a few seconds
- Better custom formatting for Git File Blame
- Support Focus View with GitLab / GitLab Self-Managed
- Slow Commits list view if there are commits with many (10000+) changed files
- Detail view incorrectly parses GitHub account in commit message
- GitLens: Open Associated Pull Request doesn't work HOT 1
- [error] Canceled: Canceled
- Error "Cannot read properties of null (reading 'map') HOT 5
- Add UX option to open repository in Gitkraken Desktop HOT 1
- Feature Request: Enable Gitkraken to work over a ssh with a remote machine similar to Microsoft's Remote SSH VS Code plugin HOT 2
- Every file is highlighting changes that don't exist.
- Git Profiles
- Restore (checkout) multiple file changes when using search & compare
- Browsing a diff with a following Live Share participant shows separate tabs instead of the diff on the participant's side.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-gitlens.