Giter Site home page Giter Site logo

Comments (5)

jrmoulton avatar jrmoulton commented on August 25, 2024

I'm also running into this same issue. @dalance what would need to be done to get goto/find definitions implemented (if they're not already)?
I'm new-ish to rust but with some direction I could work on implementing the feature.

from svls.

patgro1 avatar patgro1 commented on August 25, 2024

Correct me if im wrong but right now the language server does not parse the full folder structure recursively nor maintain a cache of what exists where. I think the steps would be

  1. create a cache of all the modules/classes/functions and all recursively from the root of the project
  2. Create functions that return definitions, documentation, implementations and such from the cache
  3. Link these function to the ls protocol

Would that make sense @dalance

from svls.

DaveMcEwan avatar DaveMcEwan commented on August 25, 2024

@patgro1 That sounds sensible to me. However, number 1 is quite a large effort and probably shouldn't be done inside svls. Number 1 is essentially a compiler, maybe with an elaboration step. If there's a separate project which can create a cache of compiled objects, that would certainly be exciting to integrate into svls.

from svls.

DaveMcEwan avatar DaveMcEwan commented on August 25, 2024

Duplicate of #58

from svls.

patgro1 avatar patgro1 commented on August 25, 2024

@patgro1 That sounds sensible to me. However, number 1 is quite a large effort and probably shouldn't be done inside svls. Number 1 is essentially a compiler, maybe with an elaboration step. If there's a separate project which can create a cache of compiled objects, that would certainly be exciting to integrate into svls.

Assuming I wanted to do that in some way, would starting with the parser crate be ok or I would need to do it all from scratch?

also we could probably « negotiate » a representation of that cache in advance to facilitate any integration into svls (especially since it would be its main purpose)

from svls.

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.