mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Check for file scheme in linkhandler (#10090)
This commit is contained in:
@@ -65,6 +65,7 @@ export class LinkHandlerDirective {
|
||||
if (uri.fragment && uri.fragment.length > 0 && uri.fsPath === this.workbenchFilePath.fsPath) {
|
||||
this.notebookService.navigateTo(this.notebookUri, uri.fragment);
|
||||
} else {
|
||||
if (uri.scheme === 'file') {
|
||||
let exists = await this.fileService.exists(uri);
|
||||
if (!exists) {
|
||||
let relPath = relative(this.workbenchFilePath.fsPath, uri.fsPath);
|
||||
@@ -75,6 +76,7 @@ export class LinkHandlerDirective {
|
||||
onUnexpectedError(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.forceOpenExternal(uri)) {
|
||||
this.openerService.open(uri, { openExternal: true }).catch(onUnexpectedError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user