This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 43
autocompletion is not working in vscode: no suggestions #103
Labels
bug
Something isn't working
Comments
on closer look, the actual: range of
{
"range": {
"end": {
"character": 10,
"line": 4
},
"start": {
"character": 6,
"line": 4
}
}
} expected: start == end == 4:11 {
"range": {
"end": {
"character": 11,
"line": 4
},
"start": {
"character": 11,
"line": 4
}
}
} spec: interface TextEdit {
/**
* The range of the text document to be manipulated. To insert
* text into a document create a range where start === end.
*/
range: Range;
/**
* The string to be inserted. For delete operations use an
* empty string.
*/
newText: string;
} to compare, this works: completion from prefix # autocomplete
let pkgs = {
hello = "echo hello";
a.b.c = "hello nested";
}; in pkgs.hel
#12345678901234
# ^ 4:14 {
"jsonrpc": "2.0",
"id": 8,
"method": "textDocument/completion",
"params": {
"textDocument": {
"uri": "file:///tmp/test-lsp.nix"
},
"position": {
"line": 4,
"character": 14
},
"context": {
"triggerKind": 1
}
}
} {
"jsonrpc": "2.0",
"id": 8,
"result": [
{
"deprecated": false,
"detail": "Attribute",
"label": "hello",
"textEdit": {
"newText": "hello",
"range": {
"end": {
"character": 14,
"line": 4
},
"start": {
"character": 11,
"line": 4
}
}
}
}
]
} |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
vscode says "no suggestions"
autocomplete works for javascript files, so i blame rnix-lsp
Steps to reproduce
edit this nix file
response from rnix-lsp looks ok
jsonrpc: request + response
jsonrpc traffic was captured with
rnix-lsp-wrapper.sh
Expected behavior
show suggestions
Additional context
vscodium
Editor configuration
The text was updated successfully, but these errors were encountered: