Created
August 18, 2020 20:18
-
-
Save hammypants/9ba1ba4fa577c8b3b48c5ce87e469562 to your computer and use it in GitHub Desktop.
rust-analyzer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Trace - 4:03:14 PM] Sending request 'initialize - (0)'. | |
Params: { | |
"processId": 25432, | |
"clientInfo": { | |
"name": "vscode", | |
"version": "1.48.0" | |
}, | |
"rootPath": "c:\\Users\\coryr\\source\\repos\\rust-hello-world", | |
"rootUri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world", | |
"capabilities": { | |
"workspace": { | |
"applyEdit": true, | |
"workspaceEdit": { | |
"documentChanges": true, | |
"resourceOperations": [ | |
"create", | |
"rename", | |
"delete" | |
], | |
"failureHandling": "textOnlyTransactional" | |
}, | |
"didChangeConfiguration": { | |
"dynamicRegistration": true | |
}, | |
"didChangeWatchedFiles": { | |
"dynamicRegistration": true | |
}, | |
"symbol": { | |
"dynamicRegistration": true, | |
"symbolKind": { | |
"valueSet": [ | |
1, | |
2, | |
3, | |
4, | |
5, | |
6, | |
7, | |
8, | |
9, | |
10, | |
11, | |
12, | |
13, | |
14, | |
15, | |
16, | |
17, | |
18, | |
19, | |
20, | |
21, | |
22, | |
23, | |
24, | |
25, | |
26 | |
] | |
}, | |
"tagSupport": { | |
"valueSet": [ | |
1 | |
] | |
} | |
}, | |
"executeCommand": { | |
"dynamicRegistration": true | |
}, | |
"configuration": true, | |
"workspaceFolders": true | |
}, | |
"textDocument": { | |
"publishDiagnostics": { | |
"relatedInformation": true, | |
"versionSupport": false, | |
"tagSupport": { | |
"valueSet": [ | |
1, | |
2 | |
] | |
}, | |
"complexDiagnosticCodeSupport": true | |
}, | |
"synchronization": { | |
"dynamicRegistration": true, | |
"willSave": true, | |
"willSaveWaitUntil": true, | |
"didSave": true | |
}, | |
"completion": { | |
"dynamicRegistration": true, | |
"contextSupport": true, | |
"completionItem": { | |
"snippetSupport": true, | |
"commitCharactersSupport": true, | |
"documentationFormat": [ | |
"markdown", | |
"plaintext" | |
], | |
"deprecatedSupport": true, | |
"preselectSupport": true, | |
"tagSupport": { | |
"valueSet": [ | |
1 | |
] | |
}, | |
"insertReplaceSupport": true | |
}, | |
"completionItemKind": { | |
"valueSet": [ | |
1, | |
2, | |
3, | |
4, | |
5, | |
6, | |
7, | |
8, | |
9, | |
10, | |
11, | |
12, | |
13, | |
14, | |
15, | |
16, | |
17, | |
18, | |
19, | |
20, | |
21, | |
22, | |
23, | |
24, | |
25 | |
] | |
} | |
}, | |
"hover": { | |
"dynamicRegistration": true, | |
"contentFormat": [ | |
"markdown", | |
"plaintext" | |
] | |
}, | |
"signatureHelp": { | |
"dynamicRegistration": true, | |
"signatureInformation": { | |
"documentationFormat": [ | |
"markdown", | |
"plaintext" | |
], | |
"parameterInformation": { | |
"labelOffsetSupport": true | |
} | |
}, | |
"contextSupport": true | |
}, | |
"definition": { | |
"dynamicRegistration": true, | |
"linkSupport": true | |
}, | |
"references": { | |
"dynamicRegistration": true | |
}, | |
"documentHighlight": { | |
"dynamicRegistration": true | |
}, | |
"documentSymbol": { | |
"dynamicRegistration": true, | |
"symbolKind": { | |
"valueSet": [ | |
1, | |
2, | |
3, | |
4, | |
5, | |
6, | |
7, | |
8, | |
9, | |
10, | |
11, | |
12, | |
13, | |
14, | |
15, | |
16, | |
17, | |
18, | |
19, | |
20, | |
21, | |
22, | |
23, | |
24, | |
25, | |
26 | |
] | |
}, | |
"hierarchicalDocumentSymbolSupport": true, | |
"tagSupport": { | |
"valueSet": [ | |
1 | |
] | |
} | |
}, | |
"codeAction": { | |
"dynamicRegistration": true, | |
"isPreferredSupport": true, | |
"codeActionLiteralSupport": { | |
"codeActionKind": { | |
"valueSet": [ | |
"", | |
"quickfix", | |
"refactor", | |
"refactor.extract", | |
"refactor.inline", | |
"refactor.rewrite", | |
"source", | |
"source.organizeImports" | |
] | |
} | |
} | |
}, | |
"codeLens": { | |
"dynamicRegistration": true | |
}, | |
"formatting": { | |
"dynamicRegistration": true | |
}, | |
"rangeFormatting": { | |
"dynamicRegistration": true | |
}, | |
"onTypeFormatting": { | |
"dynamicRegistration": true | |
}, | |
"rename": { | |
"dynamicRegistration": true, | |
"prepareSupport": true | |
}, | |
"documentLink": { | |
"dynamicRegistration": true, | |
"tooltipSupport": true | |
}, | |
"typeDefinition": { | |
"dynamicRegistration": true, | |
"linkSupport": true | |
}, | |
"implementation": { | |
"dynamicRegistration": true, | |
"linkSupport": true | |
}, | |
"colorProvider": { | |
"dynamicRegistration": true | |
}, | |
"foldingRange": { | |
"dynamicRegistration": true, | |
"rangeLimit": 5000, | |
"lineFoldingOnly": true | |
}, | |
"declaration": { | |
"dynamicRegistration": true, | |
"linkSupport": true | |
}, | |
"selectionRange": { | |
"dynamicRegistration": true | |
}, | |
"callHierarchy": { | |
"dynamicRegistration": true | |
}, | |
"semanticTokens": { | |
"dynamicRegistration": true, | |
"tokenTypes": [ | |
"comment", | |
"keyword", | |
"number", | |
"regexp", | |
"operator", | |
"namespace", | |
"type", | |
"struct", | |
"class", | |
"interface", | |
"enum", | |
"typeParameter", | |
"function", | |
"member", | |
"macro", | |
"variable", | |
"parameter", | |
"property", | |
"label" | |
], | |
"tokenModifiers": [ | |
"declaration", | |
"documentation", | |
"static", | |
"abstract", | |
"deprecated", | |
"readonly" | |
] | |
} | |
}, | |
"window": { | |
"workDoneProgress": true | |
}, | |
"experimental": { | |
"snippetTextEdit": true, | |
"codeActionGroup": true, | |
"resolveCodeAction": true, | |
"hoverActions": true, | |
"statusNotification": true | |
} | |
}, | |
"initializationOptions": { | |
"lruCapacity": null, | |
"files": { | |
"watcher": "client", | |
"exclude": [] | |
}, | |
"notifications": { | |
"cargoTomlNotFound": true | |
}, | |
"cargo": { | |
"autoreload": true, | |
"noDefaultFeatures": false, | |
"allFeatures": false, | |
"features": [], | |
"loadOutDirsFromCheck": false, | |
"target": null | |
}, | |
"rustfmt": { | |
"extraArgs": [], | |
"overrideCommand": null | |
}, | |
"checkOnSave": { | |
"enable": true, | |
"extraArgs": [], | |
"command": "check", | |
"overrideCommand": null, | |
"allTargets": true, | |
"noDefaultFeatures": null, | |
"allFeatures": null, | |
"features": null | |
}, | |
"cargoRunner": null, | |
"runnableEnv": null, | |
"inlayHints": { | |
"enable": true, | |
"typeHints": true, | |
"chainingHints": true, | |
"parameterHints": true, | |
"maxLength": 20 | |
}, | |
"completion": { | |
"addCallParenthesis": true, | |
"addCallArgumentSnippets": true, | |
"postfix": { | |
"enable": true | |
} | |
}, | |
"callInfo": { | |
"full": true | |
}, | |
"updates": { | |
"channel": "nightly", | |
"askBeforeDownload": true | |
}, | |
"serverPath": null, | |
"trace": { | |
"server": "verbose", | |
"extension": true | |
}, | |
"procMacro": { | |
"enable": false | |
}, | |
"debug": { | |
"engine": "auto", | |
"sourceFileMap": { | |
"/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust" | |
}, | |
"openDebugPane": false, | |
"engineSettings": {} | |
}, | |
"lens": { | |
"enable": true, | |
"run": true, | |
"debug": true, | |
"implementations": true | |
}, | |
"hoverActions": { | |
"enable": true, | |
"implementations": true, | |
"run": true, | |
"debug": true, | |
"gotoTypeDef": true | |
}, | |
"linkedProjects": null, | |
"withSysroot": true, | |
"diagnostics": { | |
"enable": true, | |
"enableExperimental": true, | |
"warningsAsInfo": [], | |
"warningsAsHint": [] | |
} | |
}, | |
"trace": "verbose", | |
"workspaceFolders": [ | |
{ | |
"uri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world", | |
"name": "rust-hello-world" | |
} | |
] | |
} | |
[Trace - 4:03:14 PM] Received response 'initialize - (0)' in 75ms. | |
Result: { | |
"capabilities": { | |
"callHierarchyProvider": true, | |
"codeActionProvider": { | |
"codeActionKinds": [ | |
"", | |
"quickfix", | |
"refactor", | |
"refactor.extract", | |
"refactor.inline", | |
"refactor.rewrite" | |
] | |
}, | |
"codeLensProvider": { | |
"resolveProvider": true | |
}, | |
"completionProvider": { | |
"triggerCharacters": [ | |
":", | |
"." | |
] | |
}, | |
"definitionProvider": true, | |
"documentFormattingProvider": true, | |
"documentHighlightProvider": true, | |
"documentOnTypeFormattingProvider": { | |
"firstTriggerCharacter": "=", | |
"moreTriggerCharacter": [ | |
".", | |
">" | |
] | |
}, | |
"documentSymbolProvider": true, | |
"experimental": { | |
"joinLines": true, | |
"onEnter": true, | |
"parentModule": true, | |
"runnables": { | |
"kinds": [ | |
"cargo" | |
] | |
}, | |
"ssr": true | |
}, | |
"foldingRangeProvider": true, | |
"hoverProvider": true, | |
"implementationProvider": true, | |
"referencesProvider": true, | |
"renameProvider": { | |
"prepareProvider": true | |
}, | |
"selectionRangeProvider": true, | |
"semanticTokensProvider": { | |
"documentProvider": { | |
"edits": true | |
}, | |
"legend": { | |
"tokenModifiers": [ | |
"documentation", | |
"declaration", | |
"definition", | |
"static", | |
"abstract", | |
"deprecated", | |
"readonly", | |
"constant", | |
"controlFlow", | |
"injected", | |
"mutable", | |
"unsafe", | |
"attribute" | |
], | |
"tokenTypes": [ | |
"comment", | |
"keyword", | |
"string", | |
"number", | |
"regexp", | |
"operator", | |
"namespace", | |
"type", | |
"struct", | |
"class", | |
"interface", | |
"enum", | |
"typeParameter", | |
"function", | |
"member", | |
"property", | |
"macro", | |
"variable", | |
"parameter", | |
"label", | |
"attribute", | |
"boolean", | |
"builtinType", | |
"enumMember", | |
"escapeSequence", | |
"formatSpecifier", | |
"generic", | |
"lifetime", | |
"punctuation", | |
"selfKeyword", | |
"typeAlias", | |
"union", | |
"unresolvedReference" | |
] | |
}, | |
"rangeProvider": true | |
}, | |
"signatureHelpProvider": { | |
"triggerCharacters": [ | |
"(", | |
"," | |
] | |
}, | |
"textDocumentSync": { | |
"change": 2, | |
"openClose": true, | |
"save": {} | |
}, | |
"typeDefinitionProvider": true, | |
"workspaceSymbolProvider": true | |
}, | |
"serverInfo": { | |
"name": "rust-analyzer", | |
"version": "7d95a84" | |
} | |
} | |
[Trace - 4:03:14 PM] Sending notification 'initialized'. | |
Params: {} | |
[Trace - 4:03:14 PM] Sending notification 'textDocument/didOpen'. | |
Params: { | |
"textDocument": { | |
"uri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world/main.rs", | |
"languageId": "rust", | |
"version": 1, | |
"text": "fn main() {\r\n\tprintln!(\"Hello world!\");\r\n}" | |
} | |
} | |
[Trace - 4:03:14 PM] Received notification 'window/showMessage'. | |
Params: { | |
"message": "rust-analyzer failed to discover workspace", | |
"type": 1 | |
} | |
[Trace - 4:03:14 PM] Received request 'client/registerCapability - (0)'. | |
Params: { | |
"registrations": [ | |
{ | |
"id": "textDocument/didSave", | |
"method": "textDocument/didSave", | |
"registerOptions": { | |
"documentSelector": [ | |
{ | |
"pattern": "**/*.rs" | |
}, | |
{ | |
"pattern": "**/Cargo.toml" | |
}, | |
{ | |
"pattern": "**/Cargo.lock" | |
} | |
], | |
"includeText": false | |
} | |
} | |
] | |
} | |
[Trace - 4:03:14 PM] Sending response 'client/registerCapability - (0)'. Processing request took 1ms | |
No result returned. | |
[Trace - 4:03:14 PM] Sending request 'textDocument/documentSymbol - (1)'. | |
Params: { | |
"textDocument": { | |
"uri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world/main.rs" | |
} | |
} | |
[Trace - 4:03:14 PM] Sending request 'textDocument/codeAction - (2)'. | |
Params: { | |
"textDocument": { | |
"uri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world/main.rs" | |
}, | |
"range": { | |
"start": { | |
"line": 2, | |
"character": 1 | |
}, | |
"end": { | |
"line": 2, | |
"character": 1 | |
} | |
}, | |
"context": { | |
"diagnostics": [] | |
} | |
} | |
[Trace - 4:03:14 PM] Received response 'textDocument/documentSymbol - (1)' in 11ms. Request failed: Rust Analyzer is still loading... (-32801). | |
[Trace - 4:03:14 PM] Received response 'textDocument/codeAction - (2)' in 11ms. Request failed: Rust Analyzer is still loading... (-32801). | |
[Trace - 4:03:14 PM] Sending request 'rust-analyzer/inlayHints - (3)'. | |
Params: { | |
"textDocument": { | |
"uri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world/main.rs" | |
} | |
} | |
[Trace - 4:03:14 PM] Received response 'rust-analyzer/inlayHints - (3)' in 1ms. Request failed: Rust Analyzer is still loading... (-32801). | |
[Trace - 4:03:14 PM] Sending request 'textDocument/semanticTokens/range - (4)'. | |
Params: { | |
"textDocument": { | |
"uri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world/main.rs" | |
}, | |
"range": { | |
"start": { | |
"line": 0, | |
"character": 0 | |
}, | |
"end": { | |
"line": 2, | |
"character": 1 | |
} | |
} | |
} | |
[Trace - 4:03:14 PM] Received response 'textDocument/semanticTokens/range - (4)' in 1ms. Request failed: Rust Analyzer is still loading... (-32801). | |
[Trace - 4:03:14 PM] Sending request 'rust-analyzer/inlayHints - (5)'. | |
Params: { | |
"textDocument": { | |
"uri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world/main.rs" | |
} | |
} | |
[Trace - 4:03:14 PM] Received response 'rust-analyzer/inlayHints - (5)' in 1ms. Request failed: Rust Analyzer is still loading... (-32801). | |
[Trace - 4:03:14 PM] Sending request 'textDocument/foldingRange - (6)'. | |
Params: { | |
"textDocument": { | |
"uri": "file:///c%3A/Users/coryr/source/repos/rust-hello-world/main.rs" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment