Comments (6)
I'm using ElixirSense via alchemist.vim and I opened an issue on its GitHub project related to this:
... but I didn't think it was possible, or feasible, given that the context in which an .eex template file is evaluated doesn't seem to be closely coupled to the file.
But I'm glad I seem to have been wrong!
from elixir_sense.
@kenny-evitt regarding ~E
and ~L
it's totally doable. However, you're right about .eex
files. They can be "injected" in any file. Maybe, the best we could do would be to try to find the related view based on the folder/name of the template. But then it would not work when the developer does not follow the convention.
@axelson @lukaszsamson WDYT?
from elixir_sense.
@msaraiva Maybe, for .eex files, the commands, or new similar commands, could accept both a line and column in the .eex file and a line and column in the relevant 'view' module file. The new commands could be named EexDoc
and EexDef
.
from elixir_sense.
Yeah for plain ~E
and ~L
I think that they could be used in multiple contexts so it's impossible to know how it's going to be used. I do like what @kenny-evitt suggested, that seems like a practical compromise which will help in the majority of cases.
from elixir_sense.
SIgnature and docs definitely work in (h)eex
from elixir_sense.
Vars in templates tracked in elixir-lsp/vscode-elixir-ls#279
from elixir_sense.
Related Issues (20)
- Type system could handle function captures
- Signature provider reveals opaque type details
- No specs on metadata type suggestions
- Duplicated signatures for local dunctions
- Provide full documentation for code in current buffer
- Local macro is available only after definition
- Incorrect handling of alias and require with warn option
- Suggestion crash on elixir 1.15
- quote used as variable not working correctly with docs and definition provider
- Binding does not respect requires and local macro position
- Multiple meta looks bad in docs
- No spec in signature and docs for module_info on local module
- Invalid handling of MACRO- in params reducer
- Add hidden metadata on doc:false and underscored functions and types
- Variable matching regex is invalid
- Document that this is included in elixir-ls HOT 2
- Language Server crashes when autocompleting `:pg`
- Definition provider does not work for nested phoenix scopes HOT 3
- Error when Module Attribute in Docstring HOT 3
- What does providers being deprecated mean for plugins? HOT 2
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 elixir_sense.