diff --git a/package.json b/package.json index a85e1f10..948183f6 100644 --- a/package.json +++ b/package.json @@ -165,7 +165,7 @@ }, "rust-client.channel": { "type": "string", - "default": "nightly", + "default": "stable", "description": "Rust channel to install RLS from." }, "rust-client.rls-name": { diff --git a/src/configuration.ts b/src/configuration.ts index 813d4d1f..c7e7870b 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -58,7 +58,7 @@ export class RLSConfiguration { this.revealOutputChannelOn = RLSConfiguration.readRevealOutputChannelOn(configuration); this.updateOnStartup = configuration.get('rust-client.updateOnStartup', true); - this.channel = configuration.get('rust-client.channel', 'nightly'); + this.channel = configuration.get('rust-client.channel', 'stable'); this.componentName = configuration.get('rust-client.rls-name', 'rls'); // Hidden options that are not exposed to the user diff --git a/src/rustup.ts b/src/rustup.ts index 6252c2b3..5a037d53 100644 --- a/src/rustup.ts +++ b/src/rustup.ts @@ -43,7 +43,9 @@ export async function rustupUpdate() { } } -// Check for the nightly toolchain (and that rustup exists) +/** + * Check for the toolchain from congifuration (and that rustup exists) + */ async function ensureToolchain(): Promise { const toolchainInstalled = await hasToolchain(); if (toolchainInstalled) {