about summary refs log tree commit diff
path: root/editors/code
AgeCommit message (Collapse)AuthorLines
2022-04-03Load @hpcc-js/wasm as a script, not workerLaurențiu Nicola-1/+1
2022-04-01Merge #11796bors[bot]-14/+0
11796: minor: Remove sponsors from readme files r=Veykril a=Veykril No need to merge this now though Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-03-31Add "view file text" command to debug sync issuesJonas Schievink-0/+60
2022-03-25Bump npm depsLaurențiu Nicola-512/+760
2022-03-24Disable experimental diagnostics by defaultJonas Schievink-1/+1
2022-03-22minor: Remove sponsors from readme filesLukas Wirth-14/+0
2022-03-22fix: Fix lifetime elision hint configuration keyLukas Wirth-1/+1
2022-03-20Merge #11771bors[bot]-0/+5
11771: feat: Visualize compiler inserted reborrows via inlay hints r=Veykril a=Veykril Disabled by default. ![image](https://user-images.githubusercontent.com/3757771/159165178-baaf968a-4381-468e-933f-5326ca1b203d.png) Closes https://github.com/rust-analyzer/rust-analyzer/issues/11275 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-03-20feat: Visualize compiler inserted reborrows via inlay hintsLukas Wirth-0/+5
2022-03-19Merge #11755bors[bot]-0/+20
11755: feat: Implement lifetime elision hints r=Veykril a=Veykril With names on: ![Code_erl26zKvuf](https://user-images.githubusercontent.com/3757771/159134856-e2c75d2d-f17c-45c7-9a78-3da5ee8b1acd.png) With names off: ![Code_MRP1Pbfe9d](https://user-images.githubusercontent.com/3757771/159134857-30fac3a1-825e-4f49-ba9b-9fa0bb215694.png) Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-03-19Change skip trivial behaviourLukas Wirth-3/+3
2022-03-19Add option to skip trivial casesLukas Wirth-0/+20
2022-03-18Remove Update GitHub API token commandLaurențiu Nicola-9/+0
2022-03-16feat: Add return type hints for closures with block bodiesLukas Wirth-6/+13
2022-03-15editors/code: fix crash due to missing ID= fieldVladimir Serov-2/+2
Assuming ID=linux in isNixOs by default. You can get away with default "", but why do that if there's a default value in spec?) Also removed toLowerCase — it really shouldn't be needed. Fixes #11709
2022-03-13editors/code: fix nixos detectionVladimir Serov-1/+2
Problem: NixOS started using quotes around it's id field in /etc/os-release Solution: Parially parsing os-release, and detecting, whether `nixos` appears anywhere in "ID=" field\ See https://github.com/rust-analyzer/rust-analyzer/issues/11695 Closes #11695
2022-03-11fix: Allow configuration of colons in inlay-hintsLukas Wirth-0/+5
2022-03-07Merge #11445bors[bot]-604/+409
11445: Upstream inlay hints r=lnicola a=lnicola Closes https://github.com/rust-analyzer/rust-analyzer/issues/2797 Closes https://github.com/rust-analyzer/rust-analyzer/issues/3394 (since now resolve the hints for the range given only, not for the whole document. We don't actually resolve anything due to [hard requirement](https://github.com/rust-analyzer/rust-analyzer/pull/11445#issuecomment-1035227434) on label being immutable. Any further heavy actions could go to the `resolve` method that's now available via the official Code API for hints) Based on `@SomeoneToIgnore's` branch, with a couple of updates: - I squashed, more or less successfully, the commits on that branch - downloading the `.d.ts` no longer works, but you can get it manually from https://raw.githubusercontent.com/microsoft/vscode/release/1.64/src/vscode-dts/vscode.proposed.inlayHints.d.ts - you might need to pass `--enable-proposed-api matklad.rust-analyzer` - if I'm reading the definition right, `InlayHintKind` needs to be serialized as a number, not string - this doesn't work anyway -- the client-side gets the hints, but they don't display Co-authored-by: Kirill Bulatov <mail4score@gmail.com> Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2022-03-07Add missing parameterLaurențiu Nicola-1/+2
2022-03-07Bump esbuildLaurențiu Nicola-102/+549
2022-03-07Update LSP docsLaurențiu Nicola-1/+1
2022-03-06Highlight `Self` as a keyword by defaultLukas Wirth-1/+1
2022-03-05Fix highlighting of `Self`Lukas Wirth-0/+5
2022-03-04Drop hint conversionLaurențiu Nicola-3/+0
2022-03-04Bump vscodeLaurențiu Nicola-88/+11
2022-03-04Clean up the redundant hints code and configKirill Bulatov-86/+4
2022-03-04FixesLaurențiu Nicola-2/+3
2022-03-04Add log messagesLaurențiu Nicola-3/+5
2022-03-04Bump depsLaurențiu Nicola-47/+51
2022-03-04Add experimental VSCode apiKirill Bulatov-607/+119
2022-02-25feat: Make private editable completions configurable, disable by defaultLukas Wirth-0/+5
2022-02-23Remove reference to updates.channel from settingsLaurențiu Nicola-1/+1
2022-02-06Merge #11416bors[bot]-1/+13
11416: Fix eslint language server not working r=Veykril a=jackos Allows the language server for eslint to work inside VS Code. Before change: ![image](https://user-images.githubusercontent.com/77730378/152661637-c5d90678-39dc-4018-b884-fc4b6135368e.png) After change: ![image](https://user-images.githubusercontent.com/77730378/152661647-164c0655-aa6a-4c50-b49d-49cda112d149.png) Co-authored-by: Jack Clayton <jackclayto@gmail.com>
2022-02-06fix two vulneabilities (moderate: 1, high: 1) by running npm auditMoritz Vetter-69/+42
2022-02-06Fix eslint errorsJack Clayton-1/+13
2022-01-30Update README.mdFlorian Diebold-1/+0
I'm not currently sponsored anymore.
2022-01-27Support <code> blocks from Rust docsAndrew Onyshchuk-0/+3
2022-01-25Merge #11281bors[bot]-0/+7
11281: ide: parallel prime caches r=jonas-schievink a=jhgg cache priming goes brrrr... the successor to #10149 --- this PR implements a parallel cache priming strategy that uses a topological work queue to feed a pool of worker threads the crates to index in parallel. ## todo - [x] should we keep the old prime caches? - [x] we should use num_cpus to detect how many cpus to use to prime caches. should we also expose a config for # of worker CPU threads to use? - [x] something is wonky with cancellation, need to figure it out before this can merge. Co-authored-by: Jake Heinz <jh@discordapp.com>
2022-01-22Bump npm depsLaurențiu Nicola-502/+491
2022-01-17fix: remove pipe from surroundingPairsChris Price-2/+1
Closes https://github.com/rust-analyzer/rust-analyzer/issues/11192
2022-01-15make it a configJake Heinz-0/+7
2022-01-07Merge #11145bors[bot]-0/+13
11145: feat: add config to use reasonable default expression instead of todo! when filling missing fields r=Veykril a=bnjjj Use `Default::default()` in struct fields when we ask to fill it instead of putting `todo!()` for every fields before: ```rust pub enum Other { One, Two, } pub struct Test { text: String, num: usize, other: Other, } fn t_test() { let test = Test {<|>}; } ``` after: ```rust pub enum Other { One, Two, } pub struct Test { text: String, num: usize, other: Other, } fn t_test() { let test = Test { text: String::new(), num: 0, other: todo!(), }; } ``` Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Co-authored-by: Coenen Benjamin <benjamin.coenen@hotmail.com>
2022-01-07feat(diagnostics): use default expression instead of todo! when missing fieldsBenjamin Coenen-3/+3
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2022-01-07feat(diagnostics): use default expression instead of todo! when missing fieldsBenjamin Coenen-3/+3
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2022-01-06Adjust config nameLukas Wirth-2/+2
2022-01-06Regenrate docs and package.jsonLukas Wirth-0/+5
2022-01-04add better default behavior on fill struct fields diagnosticBenjamin Coenen-1/+1
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2022-01-02internal: Handle macro calls better in highlightingLukas Wirth-0/+8
2021-12-31feat(diagnostics): add new config to fill default expressionBenjamin Coenen-1/+14
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2021-12-30Fix server path on NixOSLaurențiu Nicola-1/+1