about summary refs log tree commit diff
path: root/editors/code/package.json
AgeCommit message (Collapse)AuthorLines
2022-07-18Improve file watcher configJonas Schievink-1/+9
2022-07-09Bump @vscode/test-electronLaurențiu Nicola-1/+1
2022-07-09Bump @types/node to 16Laurențiu Nicola-1/+1
2022-07-09Bump typescript and tslibLaurențiu Nicola-2/+2
2022-07-09Bump prettierLaurențiu Nicola-1/+1
2022-07-09Bump @typescript-eslintLaurențiu Nicola-2/+2
2022-07-09Bump vsceLaurențiu Nicola-1/+1
2022-07-09Bump eslintLaurențiu Nicola-1/+1
2022-07-09Bump esbuildLaurențiu Nicola-1/+1
2022-07-09Bump d3 and d3-graphvizLaurențiu Nicola-2/+2
2022-07-09Bump vscode-languageclientLaurențiu Nicola-1/+1
2022-07-04Add back restartServerOnConfigChange optionFlorian Diebold-0/+5
2022-07-04Improve documentation for buildScripts.overrideCommand / ↵Florian Diebold-10/+5
checkOnSave.overrideCommand
2022-06-23Try to publish releases to OpenVSXLaurențiu Nicola-0/+1
2022-06-14fix typo in package.jsonKevin Ushey-1/+1
2022-06-06Add restartServerOnConfigChange settingHasan Ali-0/+5
2022-05-28fix: add an option to show inlay hint for return type of closures without blockharpsword-3/+13
2022-05-25internal: Make autoclosing angle brackets configurable, disabled by defaultLukas Wirth-0/+5
2022-05-24prettierJake Heinz-1/+4
2022-05-24vscode: fix extraEnv handling numeric valuesJake Heinz-0/+3
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-17remove tsfmt from dependenciesAndrei Listochkin-1/+0
2022-05-17use prettier to format the codeAndrei Listochkin-2/+2
2022-05-17prettier configAndrei Listochkin-0/+2
[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-16Show inlay hints after a `}` to indicate the closed itemJonas Schievink-0/+11
2022-05-16Auto merge of #12253 - Veykril:bm, r=Veykrilbors-0/+5
feat: Add binding mode inlay hints ![image](https://user-images.githubusercontent.com/3757771/168427387-2f299438-a0cc-496b-a9a5-d689ef6a2b55.png)
2022-05-15Auto merge of #12242 - flodiebold:extension-description, r=flodieboldbors-3/+2
Improve extension description and README
2022-05-14Update package.jsonLukas Wirth-0/+5
2022-05-14internal: Make VSCode config more GUI edit friendlyLukas Wirth-66/+51
2022-05-13Change descriptionFlorian Diebold-2/+1
2022-05-13fix: Fix incorrect hover actions config keysLukas Wirth-5/+5
2022-05-13Improve extension description and READMEFlorian Diebold-2/+2
2022-05-13Update package descriptionLukas Wirth-1/+1
2022-05-13fix: Fix typo in publisher fieldLukas Wirth-1/+1
2022-05-13feat: Change VSCode extension publisher to `rust-lang`Lukas Wirth-1/+1
2022-05-12fix: Fix vscode config descriptions not recognizing all valid valuesLukas Wirth-50/+68
2022-05-12Auto merge of #12226 - Veykril:reborrow-inlay-hints, r=Veykrilbors-2/+15
feat: Allow reborrow inlay hints to be restricted to mutable reborrows only
2022-05-12feat: Allow reborrow inlay hints to be restricted to mutable reborrows onlyLukas Wirth-2/+15
2022-05-12Auto merge of #12215 - ↵bors-3/+4
listochkin:Support-variable-substitution-in-vscode-settings, r=Veykril feat: Support variable substitution in VSCode settings Currently support a subset of [variables provided by VSCode](https://code.visualstudio.com/docs/editor/variables-reference) in `server.extraEnv` section of Rust-Analyzer settings: * `workspaceFolder` * `workspaceFolderBasename` * `cwd` * `execPath` * `pathSeparator` Also, this PR adds support for general environment variables resolution. You can declare environment variables and reference them from other variables like this: ```JSON "rust-analyzer.server.extraEnv": { "RUSTFLAGS": "-L${env:OPEN_XR_SDK_PATH}", "OPEN_XR_SDK_PATH": "${workspaceFolder}\\..\\OpenXR-SDK\\build\\src\\loader\\Release" }, ``` The order of variable declaration doesn't matter, you can reference variables before defining them. If the variable is not present in `extraEnv` section, VSCode will search for them in your environment. Missing variables will be replaced with empty string. Circular references won't be resolved and will be passed to rust-analyzer server process as is. Closes #9626, but doesn't address use cases where people want to use values provided by `rustc` or `cargo`, such as `${targetTriple}` proposal #11649
2022-05-12internal: Rename primeCaches config keysLukas Wirth-12/+12
2022-05-12Fix `character` semantic token type definitionLuna Razzaghipour-2/+2
2022-05-11handle references to external environment variablesAndrei Listochkin-3/+4
use cross-env to enable env variables on Windows
2022-05-10fix typo in `inlayHints.renderColons` option descriptionElliot Roberts-1/+1
2022-05-10Auto merge of #12010 - Veykril:r-a-config, r=Veykrilbors-254/+284
Config revamp Fixes https://github.com/rust-lang/rust-analyzer/issues/11790 Fixes https://github.com/rust-lang/rust-analyzer/issues/12115 This PR changes a lot of config names, and a few ones are being merged or split apart. The reason for this is that our configuration names currently are rather inconsistent and some where poorly chosen in regards to extensability. This PR plans to fix that. We still allow the old config names by patching them to the new ones before deserializing to keep backwards compatability with other clients (the VSCode client will auto update the config) but ideally we will get rid of that layer in the future. Here is a list of the changes: These are simple renames `old_name | alias1 | alias2 ... -> new_name` (the vscode client will fix these up automagically): ``` assist_allowMergingIntoGlobImports -> imports_merge_glob assist_exprFillDefault -> assist_expressionFillDefault assist_importEnforceGranularity -> imports_granularity_enforce assist_importGranularity | assist_importMergeBehavior | assist_importMergeBehaviour -> imports_granularity_group assist_importGroup -> imports_group_enable assist_importPrefix -> imports_prefix cache_warmup -> primeCaches_enable cargo_loadOutDirsFromCheck -> cargo_buildScripts_enable cargo_runBuildScripts | cargo_runBuildScriptsCommand -> cargo_runBuildScripts_overrideCommand cargo_useRustcWrapperForBuildScripts -> cargo_runBuildScripts_useRustcWrapper completion_snippets -> completion_snippets_custom diagnostics_enableExperimental -> diagnostics_experimental_enable experimental_procAttrMacros -> procMacro_attributes_enable highlighting_strings -> semanticHighlighting_strings_enable highlightRelated_breakPoints -> semanticHighlighting_breakPoints_enable highlightRelated_exitPoints -> semanticHighlighting_exitPoints_enable highlightRelated_yieldPoints -> semanticHighlighting_yieldPoints_enable highlightRelated_references -> semanticHighlighting_references_enable hover_documentation -> hover_documentation_enable hover_linksInHover | hoverActions_linksInHover -> hover_links_enable hoverActions_debug -> hoverActions_debug_enable hoverActions_enable -> hoverActions_enable_enable hoverActions_gotoTypeDef -> hoverActions_gotoTypeDef_enable hoverActions_implementations -> hoverActions_implementations_enable hoverActions_references -> hoverActions_references_enable hoverActions_run -> hoverActions_run_enable inlayHints_chainingHints -> inlayHints_chainingHints_enable inlayHints_closureReturnTypeHints -> inlayHints_closureReturnTypeHints_enable inlayHints_hideNamedConstructorHints -> inlayHints_typeHints_hideNamedConstructorHints inlayHints_parameterHints -> inlayHints_parameterHints_enable inlayHints_reborrowHints -> inlayHints_reborrowHints_enable inlayHints_typeHints -> inlayHints_typeHints_enable lruCapacity -> lru_capacity runnables_cargoExtraArgs -> runnables_extraArgs runnables_overrideCargo -> runnables_command rustcSource -> rustc_source rustfmt_enableRangeFormatting -> rustfmt_rangeFormatting_enable ``` These are configs that have been merged or split apart, which have to be manually updated by the user: ``` callInfo_full -> signatureInfo_detail, signatureInfo_documentation_enable cargo_allFeatures, cargo_features -> cargo_features checkOnSave_allFeatures, checkOnSave_features -> checkOnSave_features completion_addCallArgumentSnippets completion_addCallParenthesis -> completion_callable_snippets ```
2022-05-01Fix up config docsLukas Wirth-12/+12
2022-05-01Final fixupsLukas Wirth-4/+4
2022-05-01Adjust signature info and enum variant lensesLukas Wirth-6/+14
2022-05-01Update docs and configLukas Wirth-252/+274