Comments (8)
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.
from atom-languageclient.
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.
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.
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.
Thank you, I will do that now.
from atom-languageclient.
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.
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)
- TypeError: Cannot read property 'isIncomplete' of null
- abc log console
- Hook to server termination HOT 4
- Is this project dead? HOT 3
- Autocomplete handling does not meet spec HOT 1
- Why is activate() without parameter? HOT 1
- replacementPrefix generated by textEdit for autocompletion suggestions is overruled HOT 3
- Client throws error after receiving a diagnostic message HOT 1
- Include Apache Camel Language Server in wiki HOT 1
- Atom ide being deprecated HOT 8
- Succesfully cancelled request still log a (spurious) error HOT 1
- Doesn't install on windows HOT 1
- Better source of languageId HOT 2
- Request to add ide-gopls to the wiki page HOT 1
- slash or 'normalised-path' - warning HOT 1
- Update to LSP Version 3.15 HOT 1
- Hover markdown is not syntax highlighted
- Is this project dead? HOT 2
- Add Erlang to wiki of supported languages
- This repo has officially moved to atom-community HOT 1
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 atom-languageclient.