-
Notifications
You must be signed in to change notification settings - Fork 332
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
SymbolKind for val should not be constant #39
Comments
For literals there are I think that I think it kind of makes sense and would be wrong to mark both |
I would have thought Constant meant single assignment, but it sounds like @olafurpg has the intuition that Constant means literal. They seem to already have icons for String, Number, and Boolean which would cover a good deal of @olafurpg interpretation of Constant (wouldn’t it?) but I don’t see anything else available that covers a single assignment value. Of these admittedly not wonderful options I prefer Constant still, but is it worth proposing another symbol kind to LSP? As for icons, that feels unrelated, we can always contribute better icons. |
For what it’s worth, I like the atom icons, visually one looks like it changes over time, and the other looks like it is assigned once to my eye. |
I guess I'm just unhappy with the icon for outline types in the vscode plugin for "Constant", in atom it looks more sensible. I agree we should have a different symbol kind of vars and vals. |
Check patrys/vscode-code-outline#4 and microsoft/vscode#28592: the imcons have to be iproved in the VSCode itself. I tried to search a bit related issues in the vscode repo and I got an impression that it's not considered an big problem.. 🙁 |
I can live with it 😸 |
User is
val
(icon is kinda ugly in vscode with https://marketplace.visualstudio.com/items?itemName=patrys.vscode-code-outline)User is
var
I feel that constant is not appropriate for vals since vals can be very stateful objects, constants are IMO literals like
"string"
and2
The text was updated successfully, but these errors were encountered: