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

Avoid notifying about rlsCommandOverride being 'rls' #116

Merged
merged 1 commit into from
Dec 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,9 @@ class RustLanguageClient extends AutoLanguageClient {

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