You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/ws-kernel-picker.ts
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -257,7 +257,7 @@ export default class WSKernelPicker {
257
257
},
258
258
],
259
259
infoMessage:
260
-
"Connection to gateway failed. Your settings may be incorrect, the server may be unavailable, or you may lack sufficient privileges to complete the connection.",
260
+
"You may need to authenticate to complete the connection, or your settings may be incorrect, or the server may be unavailable.",
261
261
loadingMessage: null,
262
262
emptyMessage: null,
263
263
}asSelectListProperties);
@@ -338,10 +338,27 @@ export default class WSKernelPicker {
338
338
this._kernelSpecFilter(spec)
339
339
);
340
340
341
+
if(kernelSpecs.length===0){
342
+
this.listView.cancel();
343
+
atom.notifications.addError(
344
+
`Therer are no kernels that matches the grammar of the currently open file.
345
+
Open the file you intend to use the remote kernel for and try again.
346
+
You might also need to choose the correct grammar for the file.`
0 commit comments