Skip to content

Commit

Permalink
Accept rust-analyzer as language server
Browse files Browse the repository at this point in the history
Expand the regular expression to match rls or rust-analyzer language
servers. Do not change any other UI component as this support is still
experimental.
  • Loading branch information
tweksteen committed Jun 19, 2020
1 parent b071284 commit 85ef67e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
@SuppressWarnings("restriction")
public class RustManager {
private static final IPreferenceStore STORE = CorrosionPlugin.getDefault().getPreferenceStore();
public static final String RLS_VERSION_FORMAT_REGEX = "^rls.*$"; //$NON-NLS-1$
public static final String RLS_VERSION_FORMAT_REGEX = "^(rls|rust-analyzer).*$"; //$NON-NLS-1$
public static final String CARGO_VERSION_FORMAT_REGEX = "^cargo .*$"; //$NON-NLS-1$
public static final String RUSTUP_VERSION_FORMAT_REGEX = "^rustup .*$"; //$NON-NLS-1$
public static final Pattern RLS_VERSION_FORMAT_PATTERN = Pattern.compile(RLS_VERSION_FORMAT_REGEX);
Expand Down

0 comments on commit 85ef67e

Please sign in to comment.