Git Product home page Git Product logo

Comments (6)

randy3k avatar randy3k commented on May 26, 2024

It can be considered as a bug. The hover reply is not sent back because the server fails to load the document content. The document content is only loaded when upon didOpen, didChange and didSave.

from languageserver.

andycraig avatar andycraig commented on May 26, 2024

Can we add a feature to automatically load all R files in the workspace on initialisation (and on workspace change)?

I think the throttling already implemented in process_sync_in would avoid overwhelming the computer even in workspaces with many R files.

I am happy to work on this.

from languageserver.

randy3k avatar randy3k commented on May 26, 2024

When you say all R files, what are those R files? We are already loading the R files if the root folder is a R package.

from languageserver.

andycraig avatar andycraig commented on May 26, 2024

The case where the root folder (and possibly subfolders) contain R files, but the root directory not itself a package.

For example, in this structure I would like all of a.R, b.R and c.R to be loaded on startup:

root/
- a.R
- b.R
- package1/
  - R/
    - c.R

from languageserver.

renkun-ken avatar renkun-ken commented on May 26, 2024

In my case, each of my research projects often contain 500+ R scripts, 70k+ lines of code, which is almost surely a disaster if all files are loaded on startup.

For me, a way to provide language service that makes more sense is to provide LS to a file and referenced files (#20). And completion should be independently provided for eah file for its content (#58). Or otherwise, as the project grows, the burden of LSP gets heavier; or as I open more and more files, LSP provides more and more info mixed with every file I opened.

from languageserver.

andycraig avatar andycraig commented on May 26, 2024

Okay, at present it sounds like keeping the current system (automatically loading files only if the root folder is a package) is better than loading all files within the workspace.

from languageserver.

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.