aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/config.ts
Commit message (Collapse)AuthorAgeFilesLines
* vscode: fix local develveetaha2020-03-261-1/+1
| | | | The value of releaseTag is not undefined, but null in actual package.json
* Extension types and renderingMatt Hooper2020-03-241-0/+1
|
* Merge #3695bors[bot]2020-03-241-61/+45
|\ | | | | | | | | | | | | | | | | 3695: vscode: simplify and refactor config r=matklad a=Veetaha Removed unnecessary interfaces, changed `cfg` to be a getter to ensure the fresh values any time possible. Migrated from explicit casts to implicit. Co-authored-by: veetaha <[email protected]>
| * vscode: simplify and refactor configveetaha2020-03-231-61/+45
| |
* | Don't try to enable proposed API's on stableAleksey Kladov2020-03-241-12/+6
|/
* Make from-source install use cargo installed binary by defaultAleksey Kladov2020-03-201-2/+2
|
* Simplify extension tag sniffingAleksey Kladov2020-03-191-13/+7
|
* Rewrite auto-updateAleksey Kladov2020-03-191-96/+7
| | | | | | | | | | | | | | Everything now happens in main.ts, in the bootstrap family of functions. The current flow is: * check everything only on extension installation. * if the user is on nightly channel, try to download the nightly extension and reload. * when we install nightly extension, we persist its release id, so that we can check if the current release is different. * if server binary was not downloaded by the current version of the extension, redownload it (we persist the version of ext that downloaded the server).
* Remove outDirOverridesEmil Lauridsen2020-03-171-2/+0
|
* Change existing OUT_DIR override config to make use of new infrastructureEmil Lauridsen2020-03-171-1/+2
|
* Support loading OUT_DIR from cargo check at launchEmil Lauridsen2020-03-171-0/+3
|
* Separate persistent mutable state from configAleksey Kladov2020-03-161-41/+0
| | | | | That way, we clearly see which things are not change, and we also clearly see which things are persistent.
* vscode-postrefactor: more logging and better error handlingVeetaha2020-03-141-19/+17
|
* vscode-postrefactor: minor config refactoringsVeetaha2020-03-141-2/+3
|
* vscode-postrefactor: global storagesVeetaha2020-03-141-20/+19
|
* vscode: put comma backVeetaha2020-03-141-1/+1
|
* vscode: make bailing out on custom serverPath more evidentVeetaha2020-03-141-7/+5
|
* vscode: npm run fixVeetaha2020-03-141-3/+3
|
* vscode: prepare config for nightliesVeetaha2020-03-141-15/+96
|
* Merge #3543bors[bot]2020-03-121-3/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | 3543: Parameter inlay hint separate from variable type inlay? #2876 r=matklad a=slyngbaek Add setting to allow enabling either type inlay hints or parameter inlay hints or both. Group the the max inlay hint length option into the object. - Add a new type for the inlayHint options. - Add tests to ensure the inlays don't happen on the server side Co-authored-by: Steffen Lyngbaek <[email protected]>
| * Make maxLength nullable againSteffen Lyngbaek2020-03-121-2/+2
| |
| * Switch from Vec<InlayKind> to object with propsSteffen Lyngbaek2020-03-121-6/+7
| | | | | | | | | | | | | | - Instead of a single object type, use several individual nested types to allow toggling from the settings GUI - Remove unused struct definitions - Install and test that the toggles work
| * Address Issues from GithubSteffen Lyngbaek2020-03-101-1/+3
| | | | | | | | | | | | | | - Updated naming of config - Define struct in ra_ide and use remote derive in rust-analyzer/config - Make inlayConfig type more flexible to support more future types - Remove constructor only used in tests
| * Parameter inlay hint separate from variable type inlay? #2876Steffen Lyngbaek2020-03-101-2/+11
| | | | | | | | | | | | | | | | | | Add setting to allow enabling either type inlay hints or parameter inlay hints or both. Group the the max inlay hint length option into the object. - Add a new type for the inlayHint options. - Add tests to ensure the inlays don't happen on the server side
* | Add additional_outdirs in configEdwin Cheng2020-03-101-0/+1
|/
* vscode: groupd updates-related config under `updates` section as per @matkladVeetaha2020-03-091-1/+1
|
* vscode: fix inversion of askBeforeDownloadVeetaha2020-03-081-1/+1
|
* vscode: rename alwaysDownloadServer -> askBeforeDownloadVeetaha2020-03-081-1/+1
| | | | | | | | | | | The new name seems much simpler and it doesn't limit this config value only to downloading the server binary. Thus we wouldn't need to create another config properties to handle other downloads whatsoever. Anyway, I believe (heuristically) that most of the users would want to set "askBeforeDownload": false once and never bother clicking on the notification again (because otherwise there is no big point in installing rust-analyzer if it cannot install the server)
* vscode: care about alwaysDownloadServer option before askingVeetaha2020-03-071-5/+6
| | | | | | | Also renamed BinarySource to ArtifactSource in anticipation of nightlies installation that requires downloading not a binary itself but .vsix package, thus generalized to `artifact` term
* Config to switch to semantic tokensAleksey Kladov2020-02-261-0/+2
|
* Extract client-side loggingAleksey Kladov2020-02-221-1/+4
|
* Rename config value for server PathAleksey Kladov2020-02-181-1/+1
|
* Rename the binary to rust-analyzerAleksey Kladov2020-02-181-4/+4
|
* Migrate to eslintAleksey Kladov2020-02-171-17/+17
|
* Merge #3181bors[bot]2020-02-171-1/+2
|\ | | | | | | | | | | | | | | 3181: Add ability to pass additional arguments to rustfmt. r=matklad a=Leonqn relates to #2848 Co-authored-by: Ilya Titkov <[email protected]>
| * Add arguments to rustfmtIlya Titkov2020-02-171-1/+2
| |
* | vscode: minor refactoringsVeetaha2020-02-171-1/+0
|/
* Merge #3162bors[bot]2020-02-161-1/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3162: Feature: vscode always downloads only the matching ra_lsp_server version r=matklad a=Veetaha I tried to separate logically connected changes into separate commits, so enjoy! Now TypeScript extension saves installed binary version in global state and always checks that the installed binary version equals the version of the TypeScript extension itself (to prevent version drifts). Also, changed `fetchLatestArtifactReleaseInfo()` to `fetchArtifactReleaseInfo()` that takes an optional release tag (when not specified fetches the latest release). The version without a release tag will be useful in the future when adding auto-checking for updates. I decided not to do `Download latest language server` command (I have stated the rationale for this in #3073) and let the extension itself decide which version of the binary it wants. This way the users will be able to get the latest `ra_lsp_server` binary after the approaching 2020-02-17 release, without having to manually delete the outdated one from `~/.config/Code/User/globalStorage/matklad.rust-analyzer`! Closes #3073 Co-authored-by: Veetaha <[email protected]>
| * vscode: add version and storage parameters to github binary sourceVeetaha2020-02-161-1/+16
| |
* | vscode: fix the default value for withSysrootVeetaha2020-02-161-1/+1
|/
* vscode: renamed langServer to serverVeetaha2020-02-141-6/+6
|
* make onConfigChange handler privateVeetaha2020-02-141-1/+1
|
* vscode: moved to getters as per matkladVeetaha2020-02-141-23/+17
|
* vscode: reordered config constructor before methodsVeetaha2020-02-131-5/+6
|
* vscode: redesigned config with simplicity and Dart extension config ↵Veetaha2020-02-131-190/+68
| | | | implementation in mind
* vscode: filter out arm linux from using prebuilt binariesVeetaha2020-02-111-3/+20
|
* vscode: refactor inverted ternaries to if statements as per @matkladVeetaha2020-02-091-1/+3
|
* vscode: rename raLspServer variable to langServerVeetaha2020-02-081-3/+3
|
* vscode: refactor commentVeetaha2020-02-081-1/+1
|
* vscode: refactor platform artifact name query to switch statement, move ↵Veetaha2020-02-081-36/+53
| | | | BinarySource union variants into a namespace