cquery-project / vscode-cquery

cquery plugin for Visual Studio Code
54 stars 16 forks source link

Option to disable code lens #52

Open deitry opened 5 years ago

deitry commented 5 years ago

I want to suggest option to disable code lens. Ideally, it should be range of options in order to control variable refs, function calls, class refs separately.


Also I want to complain about inline lens implementation, but maybe it should be addressed to vscode developers: 1) lens text colorized as near standing text instead of graying. In some cases it is not clearly where are lens and there is actual code 2) when I want to put cursor at the end of the function/variable name I must click at the end of the code lens. If I click on the lens, the cursor appears before the last symbol of function name and it's annoying 3) I must switch from inline view to vertical if I want to manually format code, since lens distorts actual code position. Maybe would be better if lens would appear as it's implemented in Blame from GitLens extension - grayed at the end of line

deitry commented 5 years ago

Didn't noticed #7. Still,

"[cpp]": {
    "editor.codeLens": false
}

is definitely not what I want. I want to turn off variable refs lens and keep class refs and function calls