Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit ddf3a20

Browse files
authored
Avoid notifying about rlsCommandOverride being 'rls' (#116)
1 parent d460fd2 commit ddf3a20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,9 @@ class RustLanguageClient extends AutoLanguageClient {
627627

628628
let cmdOverride = rlsCommandOverride()
629629
if (cmdOverride) {
630-
if (!this._warnedAboutRlsCommandOverride) {
630+
if (!this._warnedAboutRlsCommandOverride && cmdOverride !== 'rls') {
631+
// Don't warn if literally 'rls' as this is a workaround for no-rustup environments
632+
// TODO: Remove !== 'rls' check once better no-rustup support is in
631633
clearIdeRustInfos()
632634
atom.notifications.addInfo(`Using rls command \`${cmdOverride}\``)
633635
this._warnedAboutRlsCommandOverride = true

0 commit comments

Comments
 (0)