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

Commit e156df0

Browse files
committed
Add 'Configure' button to rls-missing notification
1 parent 659d5b3 commit e156df0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,11 @@ function checkRls(busySignalService) {
191191
.catch(e => {
192192
atom.notifications.addError(`\`rls-preview\` was not found on \`${toolchain}\``, {
193193
detail: 'Try configuring another toolchain, like a previous nightly or `beta`',
194-
dismissable: true
194+
dismissable: true,
195+
buttons: [{
196+
text: 'Configure',
197+
onDidClick: () => atom.workspace.open('atom://config/packages/ide-rust')
198+
}]
195199
})
196200
e._logged = true
197201
throw e

0 commit comments

Comments
 (0)