Replies: 11 comments
-
Works for me in an editor. I'd suggest trying the same action in an editor of your choice and logging the requests/responses to find out the differences (paying special attention to requests triggered and their payloads). It's most likely a problem with wrong requests or project configuration. |
Beta Was this translation helpful? Give feedback.
-
I am using vscode, and i am not sure how would i check the requests its making |
Beta Was this translation helpful? Give feedback.
-
Here is the log from my editor of choice: Log
Pay attention especially to the workspace directory in |
Beta Was this translation helpful? Give feedback.
-
And I've just noticed that you are passing document text into |
Beta Was this translation helpful? Give feedback.
-
since the code wouldve been too big |
Beta Was this translation helpful? Give feedback.
-
here is the code sending the await connection.sendRequest('initialize', {
rootUri: 'file:///Users/balkrishnaverma/Documents/yash/testum',
capabilities: {},
processId: process.pid,
}).then((e) => {
// console.log("i",e)
});
await connection.sendNotification('textDocument/didOpen', {
textDocument: textDocument
}); |
Beta Was this translation helpful? Give feedback.
-
The only difference in here and the log you sent is that there is no I even copied the preferences from the log, still nothing |
Beta Was this translation helpful? Give feedback.
-
Do I need a workspaces? I thought |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
nope, what for? and adding a delay also didn't work |
Beta Was this translation helpful? Give feedback.
-
Since it works in an editor, I assume this is an issue with your code that triggers requests programmatically. You should compare the requests you are making with working requests from an editor and figure out what's missing. |
Beta Was this translation helpful? Give feedback.
-
In the following code I've been trying to get completions just after
...: Jus
So I send a request but got incorrect completions
and the output is
AbortController
which is nowhere close to what is already typedBeta Was this translation helpful? Give feedback.
All reactions