我正在使用编辑器插件上的PR,该插件不会自动为Typescript导入内容。我正在玩TSServer
,它很酷,但是据我所知,它并没有太多记载...
我正在将这些请求发送到服务器。前三个工作并提供了预期的输出,但最后一个未提供任何代码修复...
{ "seq": 0, "type": "request", "command": "open", "arguments": { "file": "/frontend/src/components/Layout/drawerContents.tsx" } }
{ "seq": 1, "type": "request", "command": "quickinfo", "arguments": { "file": "/frontend/src/components/Layout/drawerContents.tsx", "line": 21, "offset": 12 } }
{ "seq": 2, "type": "request", "command": "semanticDiagnosticsSync", "arguments": { "file": "/frontend/src/components/Layout/drawerContents.tsx" } }
{ "seq": 3, "type": "request", "command": "getCodeFixes", "arguments": { "file": "/frontend/src/components/Layout/drawerContents.tsx", "startLine": 25, "endLine": 25, "startOffset": 46, "endOffset": 46, "errorCodes": [] } }