GithubHelp home page GithubHelp logo

Comments (6)

kenny-evitt avatar kenny-evitt commented on July 30, 2024

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.

msaraiva avatar msaraiva commented on July 30, 2024

@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.

kenny-evitt avatar kenny-evitt commented on July 30, 2024

@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.

axelson avatar axelson commented on July 30, 2024

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.

lukaszsamson avatar lukaszsamson commented on July 30, 2024

SIgnature and docs definitely work in (h)eex

from elixir_sense.

lukaszsamson avatar lukaszsamson commented on July 30, 2024

Vars in templates tracked in elixir-lsp/vscode-elixir-ls#279

from elixir_sense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.