Skip to content

Instantly share code, notes, and snippets.

@AgrYpn1a
Last active June 28, 2024 13:34
Show Gist options
  • Save AgrYpn1a/1df621bba55e411cb1261df86ebec82b to your computer and use it in GitHub Desktop.
Save AgrYpn1a/1df621bba55e411cb1261df86ebec82b to your computer and use it in GitHub Desktop.
// with Flycheck
// [jsonrpc] e[15:17:13.231] --> textDocument/codeAction[29]
{"jsonrpc":"2.0","id":29,"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js"},"range":{"start":{"line":32,"character":25},"end":{"line":32,"character":33}},"context":{"diagnostics":[]}}}
// [jsonrpc] e[15:17:13.233] <-- textDocument/codeAction[29]
{"jsonrpc":"2.0","id":29,"result":[{"title":"Move to a new file","kind":"refactor.move","command":{"title":"Move to a new file","command":"_typescript.applyRefactoring","arguments":[{"file":"/Users/rastko-tdf/work/hiway-web-app/src/App.js","startLine":33,"startOffset":26,"endLine":33,"endOffset":34,"refactor":"Move to a new file","action":"Move to a new file"}]}}]}
// with Flymake
// [jsonrpc] e[15:31:09.558] --> textDocument/codeAction[16]
{"jsonrpc":"2.0","id":16,"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js"},"range":{"start":{"line":32,"character":25},"end":{"line":32,"character":33}},"context":{"diagnostics":[{"range":{"start":{"line":32,"character":25},"end":{"line":32,"character":33}},"message":"Cannot find name 'Skeleton'. Did you mean 'Selection'?","severity":1,"code":2552,"source":"typescript","relatedInformation":[{"location":{"uri":"file:///Users/rastko-tdf/.nvm/versions/node/v16.18.1/lib/node_modules/typescript/lib/lib.dom.d.ts","range":{"start":{"line":21432,"character":12},"end":{"line":21432,"character":21}}},"message":"'Selection' is declared here."}],"tags":[]}]}}}
// [jsonrpc] e[15:31:09.599] <-- textDocument/codeAction[16]
{"jsonrpc":"2.0","id":16,"result":[{"title":"Add import from \"@mui/material\"","command":{"title":"Add import from \"@mui/material\"","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":13,"character":0},"end":{"line":13,"character":0}},"newText":"import { Skeleton } from '@mui/material';\n"}]}]}]},"kind":"quickfix"},{"title":"Add import from \"@mui/lab\"","command":{"title":"Add import from \"@mui/lab\"","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":13,"character":0},"end":{"line":13,"character":0}},"newText":"import { Skeleton } from '@mui/lab';\n"}]}]}]},"kind":"quickfix"},{"title":"Add import from \"@mui/material/Skeleton\"","command":{"title":"Add import from \"@mui/material/Skeleton\"","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":13,"character":0},"end":{"line":13,"character":0}},"newText":"import Skeleton from '@mui/material/Skeleton';\n"}]}]}]},"kind":"quickfix"},{"title":"Add import from \"@mui/lab/Skeleton\"","command":{"title":"Add import from \"@mui/lab/Skeleton\"","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":13,"character":0},"end":{"line":13,"character":0}},"newText":"import Skeleton from '@mui/lab/Skeleton';\n"}]}]}]},"kind":"quickfix"},{"title":"Add import from \"@mui/material/Skeleton/Skeleton\"","command":{"title":"Add import from \"@mui/material/Skeleton/Skeleton\"","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":13,"character":0},"end":{"line":13,"character":0}},"newText":"import Skeleton from '@mui/material/Skeleton/Skeleton';\n"}]}]}]},"kind":"quickfix"},{"title":"Add import from \"@mui/lab/Skeleton/Skeleton\"","command":{"title":"Add import from \"@mui/lab/Skeleton/Skeleton\"","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":13,"character":0},"end":{"line":13,"character":0}},"newText":"import Skeleton from '@mui/lab/Skeleton/Skeleton';\n"}]}]}]},"kind":"quickfix"},{"title":"Change spelling to 'Selection'","command":{"title":"Change spelling to 'Selection'","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":32,"character":25},"end":{"line":32,"character":33}},"newText":"Selection"}]}]}]},"kind":"quickfix"},{"title":"Ignore this error message","command":{"title":"Ignore this error message","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":32,"character":25},"end":{"line":32,"character":25}},"newText":"\n// @ts-ignore\n "}]}]}]},"kind":"quickfix"},{"title":"Disable checking for this file","command":{"title":"Disable checking for this file","command":"_typescript.applyWorkspaceEdit","arguments":[{"documentChanges":[{"textDocument":{"uri":"file:///Users/rastko-tdf/work/hiway-web-app/src/App.js","version":0},"edits":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"newText":"// @ts-nocheck\n"}]}]}]},"kind":"quickfix"},{"title":"Move to a new file","kind":"refactor.move","command":{"title":"Move to a new file","command":"_typescript.applyRefactoring","arguments":[{"file":"/Users/rastko-tdf/work/hiway-web-app/src/App.js","startLine":33,"startOffset":26,"endLine":33,"endOffset":34,"refactor":"Move to a new file","action":"Move to a new file"}]}}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment