diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-18 21:52:27 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-18 21:52:27 +0000 |
commit | 91576afc7e64f11dde2bed14b578e4914d253a6a (patch) | |
tree | 1a3b26b40881e2b1d1e87992090a79c0b40b09d5 /editors/code/src/config.ts | |
parent | 7fc35d391c76aed4defc8600e75215845afa66b7 (diff) | |
parent | 34b428cc5e4b37ecd44063547f73fd1b05bf2b9e (diff) |
Merge #995
995: Install and run `cargo watch` if user agrees r=matklad a=Xanewok
This isn't a glorious patch but hopefully is useful :+1: This introduces a default background `cargo watch` task and (separately from that) asks the user on every startup if they want to run `cargo watch` (installs it if it's not available).
r? @matklad does it fit the what you've been thinking about?
Co-authored-by: Igor Matuszewski <[email protected]>
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r-- | editors/code/src/config.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index afc5cc6af..d8795f3b0 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts | |||
@@ -9,6 +9,7 @@ export class Config { | |||
9 | public enableEnhancedTyping = true; | 9 | public enableEnhancedTyping = true; |
10 | public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server'; | 10 | public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server'; |
11 | public showWorkspaceLoadedNotification = true; | 11 | public showWorkspaceLoadedNotification = true; |
12 | public enableCargoWatchOnStartup = true; | ||
12 | 13 | ||
13 | private prevEnhancedTyping: null | boolean = null; | 14 | private prevEnhancedTyping: null | boolean = null; |
14 | 15 | ||
@@ -68,5 +69,12 @@ export class Config { | |||
68 | this.raLspServerPath = | 69 | this.raLspServerPath = |
69 | RA_LSP_DEBUG || (config.get('raLspServerPath') as string); | 70 | RA_LSP_DEBUG || (config.get('raLspServerPath') as string); |
70 | } | 71 | } |
72 | |||
73 | if (config.has('enableCargoWatchOnStartup')) { | ||
74 | this.enableCargoWatchOnStartup = config.get<boolean>( | ||
75 | 'enableCargoWatchOnStartup', | ||
76 | true | ||
77 | ); | ||
78 | } | ||
71 | } | 79 | } |
72 | } | 80 | } |