Code Monkey home page Code Monkey logo

Comments (8)

damieng avatar damieng commented on June 16, 2024

Can you open the debug window and enter

atom.config.set('core.debugLSP', true)

If you then restart you should see a lot of debugging information including messages sent and received. It would be interesting to know if there is a delay between prompting for autocomplete and sending the message (unlikely) or getting the result back from the language server (I suspect it is this)

from atom-languageclient.

rwatts3 avatar rwatts3 commented on June 16, 2024

from atom-languageclient.

rwatts3 avatar rwatts3 commented on June 16, 2024

Here are the results I got when I tried to define a simple object called foo with 3 keys, 2 of them functions, one a string.

TypeScript (SourceGraph) rpc.sendRequest textDocument/completion received (67131ms)

from atom-languageclient.

rwatts3 avatar rwatts3 commented on June 16, 2024

Hmm, I wonder if there is weirdness with editing a document that is not saved, that's causing the time to completion to increase.

I typed foo., nothing appeared. I then saved the document, and put the cursor right at the dot and triggered a suggestion, and immediately got the results.

If i start a new line, and destroy that test then try to type as if I was writing a function, when I trigger a suggestion, no results take place, and finally I get a suggestions but of everything even items not relating to my object.

from atom-languageclient.

damieng avatar damieng commented on June 16, 2024

This sounds like an issue inside the language server - perhaps try opening the project in VSCode with the SourceGraph TypeScript plugin and see if it repos there? If not then it could well be because our usage pattern is slightly different and we'll have to dig down more.

from atom-languageclient.

rwatts3 avatar rwatts3 commented on June 16, 2024

Thank you, I will do that now.

from atom-languageclient.

rwatts3 avatar rwatts3 commented on June 16, 2024

Assuming this is the correct plugin https://marketplace.visualstudio.com/items?itemName=sourcegraph.javascript-typescript

yes there is a slight delay, but not as long as the one in atom.

from atom-languageclient.

damieng avatar damieng commented on June 16, 2024

Let's carry the discussion on over at the atom/ide-typescript#1 issue you created (sorry I didn't respond there, didn't get auto-added to the notifications). That way when I contact the SouceGraph team it will make sense.

from atom-languageclient.

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.