Closed imichall closed 5 years ago
Hi @imichall,
You mean ctrl + click
? (Go to definition
?)
Hi @imichall,
You mean
ctrl + click
? (Go to definition
?)
Exactly :)
Yes, this is possible. My proposal would be;
Furthermore, I will try to implement a basic support first on my end and update here.
@imichall , @gencer You are talking about click & jump to file which i selected (clicked) from popup window with occurences? http://bit.ly/2RWFrDv
No. Let say you write a latte template and there is a class in it. When you ctrl + clik
on that element it will open related SCSS/CSS file.
@gencer oh, now i understand. Its that basically same action like as in my prev video, or not?
@gencer yes, that's what I mean :) And yes, I've tried it and the class is in single file. When I try to use cmd (macos) and hover on .some-class. Then it shows me, where is the class used. But I need, as you said, link from latte, html, php into definition directly to scss :)
I will look how vscode handle such actions and try to implement.
@gencer You will have a lot of work because VSC is little buggy with this behavior, see my issue on VSC channel: https://github.com/Microsoft/vscode/issues/66984
Hi @gencer , how are you? Do you remember to my question of link from html, latte to each class style into defined style in scss? Have you already check it or started on it, please?
Hi @imichall, Yes, I will work on that. I am another city and will return to home in a week. This is why i did not go forward with any issues yet.
But, what I learned is that it requires some kind of language server/client. I also get some high cpu alerts from users. I hoped to fixed them before, Still weird.
Hi, how does it look? Just asking. Thanks for reply.
It seems we need a language server for this. I was hoping to implement without it but that is the way how it should be handled which is require significant changes that i cannot have at the moment. But, this is on my radar so subscribe on this thread.
Update: I might be a found a way of doing this without Language Server/Client via Hover
feature.
I will try to implement this.
/cc @imichall
Hi,
thanks for huge upgrade since yesterday. I'd like to ask you for some feature. Is it possible to make classes linkable to each scss style? I mean for example in latte:
where is for example span with class label
<span class="label">{label phone}</span>
and what would be great, make a class="label" linkable to style label.scss.