Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 8910433

Browse files
committed
Deprecate in-extension WSL support
1 parent db9d51d commit 8910433

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/configuration.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { workspace, WorkspaceConfiguration } from 'vscode';
1+
import { window, workspace, WorkspaceConfiguration } from 'vscode';
22
import { RevealOutputChannelOn } from 'vscode-languageclient';
33

44
import { getActiveChannel, RustupConfig } from './rustup';
@@ -26,6 +26,14 @@ export class RLSConfiguration {
2626
private constructor(configuration: WorkspaceConfiguration, wsPath: string) {
2727
this.configuration = configuration;
2828
this.wsPath = wsPath;
29+
30+
if (this.configuration.get<boolean>('rust-client.useWSL')) {
31+
window.showWarningMessage(
32+
'Option `rust-client.useWsl` is enabled for this workspace, which is DEPRECATED.\
33+
For a complete and first-class WSL support try Remote - WSL extension \
34+
extension (https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl)',
35+
);
36+
}
2937
}
3038

3139
public static loadFromWorkspace(wsPath: string): RLSConfiguration {

0 commit comments

Comments
 (0)