about summary refs log tree commit diff
path: root/editors/code
AgeCommit message (Collapse)AuthorLines
2022-07-18Improve file watcher configJonas Schievink-1/+9
2022-07-13fix: Fix VSCode status bar tooltip not showing the error messagesLukas Wirth-15/+16
2022-07-09Bump transitive npm depsLaurențiu Nicola-741/+347
2022-07-09Bump @vscode/test-electronLaurențiu Nicola-8/+8
2022-07-09Bump @types/node to 16Laurențiu Nicola-8/+8
2022-07-09Bump typescript and tslibLaurențiu Nicola-16/+16
2022-07-09Bump prettierLaurențiu Nicola-8/+8
2022-07-09Bump @typescript-eslintLaurențiu Nicola-106/+106
2022-07-09Bump vsceLaurențiu Nicola-8/+8
2022-07-09Bump eslintLaurențiu Nicola-50/+50
2022-07-09Bump esbuildLaurențiu Nicola-170/+170
2022-07-09Bump d3 and d3-graphvizLaurențiu Nicola-32/+32
2022-07-09Bump vscode-languageclientLaurențiu Nicola-35/+38
2022-07-08Update remaining GitHub URLsJonas Schievink-2/+2
2022-07-06Code: use different schemes for the custom viewsLaurențiu Nicola-10/+20
2022-07-04Add back restartServerOnConfigChange optionFlorian Diebold-0/+5
2022-07-04Improve documentation for buildScripts.overrideCommand / ↵Florian Diebold-10/+5
checkOnSave.overrideCommand
2022-06-29Ignore the `bin` artifact for `bench` targetsChayim Refael Friedman-1/+1
Just like `test`.
2022-06-23Try to publish releases to OpenVSXLaurențiu Nicola-0/+112
2022-06-15Auto merge of #12541 - Veykril:vs-reload, r=Veykrilbors-2/+2
fix: Clear proc-macro changed flag when reloading workspace
2022-06-15fix: Clear proc-macro changed flag when reloading workspaceLukas Wirth-2/+2
2022-06-14fix typo in package.jsonKevin Ushey-1/+1
2022-06-14fix: Ask the user to reload the vscode window when changing server settingsLukas Wirth-10/+23
2022-06-06Add restartServerOnConfigChange settingHasan Ali-1/+21
2022-06-05Restart server automatically on settings changesHasan Ali-8/+1
2022-06-05Auto merge of #12472 - Veykril:output-ch, r=Veykrilbors-7/+29
internal: Keep output channels across restarts cc https://github.com/rust-lang/rust-analyzer/pull/12470
2022-06-05internal: Keep output channels across restartsLukas Wirth-7/+29
2022-06-05fix: Restart the server instead of reloading the window when config changesLukas Wirth-1/+1
2022-06-05fix: Cleanup output channels when restarting serverLukas Wirth-0/+2
2022-06-01[editors/vscode] cleaer status bar bg color / command when server status ↵Jake Heinz-0/+2
returns to OK
2022-05-31fix: Fix VSCode config patching incorrectly patching some configsLukas Wirth-4/+4
2022-05-28fix: add an option to show inlay hint for return type of closures without blockharpsword-3/+13
2022-05-26Fix typoHofer-Julian-1/+1
2022-05-26internal: Use statusBarItem colors for status item in VSCodeLukas Wirth-2/+8
2022-05-25internal: Make autoclosing angle brackets configurable, disabled by defaultLukas Wirth-0/+5
2022-05-24prettierJake Heinz-3/+9
2022-05-24vscode: fix extraEnv handling numeric valuesJake Heinz-2/+6
2022-05-21Fix broken async callback in join linesLaurențiu Nicola-2/+3
2022-05-20Add "cargo clippy" task presetJonas Schievink-0/+1
2022-05-20feat: hide type inlay hints for initializations of closuresandylizi-0/+5
2022-05-20remove duplicate 'to' in `cachePriming.numThreads` option descriptionEquinox-1/+1
2022-05-18"Show implementations" link display error fixAndrei Listochkin-3/+48
While VSCode [uses it's own implementation for URIs](https://github.com/microsoft/vscode-uri) which notably doesn't have any limits of URI size, the renderer itself relies on Web platform engine, that limits the length of the URLs and bails out when the attribute length of an `href` inside `a` tag is too long. Command URIs have a form of `command:command-name?arguments`, where `arguments` is a percent-encoded array of data we want to pass along to the command function. For "Show References" this is a list of all file URIs with locations of every reference, and it can get quite long. This PR introduces another intermediary `linkToCommand` command. When we render a command link, a reference to a command with all its arguments is stored in a map, and instead a `linkToCommand` link is rendered with the key to that map. For now the map is cleaned up periodically (I've set it to every 10 minutes). In general case we'll probably need to introduce TTLs or flags to denote ephemeral links (like these in hover popups) and persistent links and clean those separately. But for now simply keeping the last few links in the map should be good enough. Likewise, we could add code to remove a target command from the map after the link is clicked, but assuming most links in hover sheets won't be clicked anyway this code won't change the overall memory use much. Closes #9926
2022-05-17automate braceless return substitution for long linesAndrei Listochkin-2/+5
Per [bjorn3][https://github.com/bjorn3] suggestion resolves cases where an early return is moved to a separate line due to line width formatting. This setting changes ``` if (a very long condition) return; ``` to ``` if (a very long condition) { return; } ``` while keeping ``` if (short) return; ``` as is. In pathological cases this may cause `npm run fix` not to fix formatting in one go and may require running it twice.
2022-05-17remove tsfmt from dependenciesAndrei Listochkin-157/+2
2022-05-17prettier runAndrei Listochkin-816/+1177
2022-05-17use prettier to format the codeAndrei Listochkin-2/+2
2022-05-17prettier configAndrei Listochkin-0/+53
[Prettier][1] is an up-to date code formatter for JavaScript ecosystem. For settings we rely on [EditorConfig][2] for things like tab style and size (with added bonus that the code editor with an EditorConfig plugin does some automated code formatting on file save for you). Unfortunately, Prettier's Glob handling isn't great: 1. `*.{ts,js,json}` has no effect 2. Similarly, in a list of globs `*.ts,*.js,*.json` only the first glob has an effect, the rest are ignored. That's why the file looks the way it does. The only other setting we change is line width. [Lukas][3] suggested we use 100 instead of 80, because that's what Rustfmt is using. [1]: https://prettier.io [2]: https://editorconfig.org [3]: https://github.com/Veykril
2022-05-17Bump extension versionJonas Schievink-1/+1
2022-05-17Fix incorrect config key in client config updateLukas Wirth-1/+1
Closes https://github.com/rust-lang/rust-analyzer/issues/12288
2022-05-16Show inlay hints after a `}` to indicate the closed itemJonas Schievink-0/+11