[Trace - 07:46:57 PM] Sending request 'completionItem/resolve - (1841)'.
Params: {
"insertTextFormat": 2,
"data": {
"entryNames": [
{
"source": "child_process",
"name": "fork"
}
],
"offset": 3,
"line": 49,
"file": "/Users/jadestrong/Documents/JadeStrong/lsp-test/index.ts"
},
"commitCharacters": [
".",
",",
"("
],
"sortText": "5",
"kind": 3,
"label": "fork"
}
[Trace - 07:46:57 PM] Received response 'completionItem/resolve - (1841)' in 18ms.
Result: {
"additionalTextEdits": [
{
"newText": "import { fork } from \"child_process\";\n",
"range": {
"end": {
"character": 0,
"line": 0
},
"start": {
"character": 0,
"line": 0
}
}
}
],
"detail": "Auto import from 'child_process'\nfunction fork(modulePath: string, args?: readonly string[] | undefined, options?: ForkOptions | undefined): ChildProcess",
"insertTextFormat": 2,
"data": {
"entryNames": [
{
"source": "child_process",
"name": "fork"
}
],
"offset": 3,
"line": 49,
"file": "/Users/jadestrong/Documents/JadeStrong/lsp-test/index.ts"
},
"commitCharacters": [
".",
",",
"("
],
"sortText": "5",
"kind": 3,
"label": "fork"
}
我还是用的 company-lsp , 看log的话,就是 lsp 补全的