mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-04-01 01:20:31 -04:00
Merge from vscode 52dcb723a39ae75bee1bd56b3312d7fcdc87aeed (#6719)
This commit is contained in:
@@ -299,10 +299,12 @@ class LinkDetector implements editorCommon.IEditorContribution {
|
||||
return this.openerService.open(uri, { openToSide });
|
||||
|
||||
}, err => {
|
||||
const messageOrError =
|
||||
err instanceof Error ? (<Error>err).message : err;
|
||||
// different error cases
|
||||
if (err === 'invalid') {
|
||||
if (messageOrError === 'invalid') {
|
||||
this.notificationService.warn(nls.localize('invalid.url', 'Failed to open this link because it is not well-formed: {0}', link.url!.toString()));
|
||||
} else if (err === 'missing') {
|
||||
} else if (messageOrError === 'missing') {
|
||||
this.notificationService.warn(nls.localize('missing.url', 'Failed to open this link because its target is missing.'));
|
||||
} else {
|
||||
onUnexpectedError(err);
|
||||
|
||||
Reference in New Issue
Block a user