mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 01:25:37 -05:00
fix section markdown and html link (#18478)
* fix section markdown and html link
This commit is contained in:
@@ -73,11 +73,13 @@ export class LinkHandlerDirective {
|
||||
}
|
||||
}
|
||||
if (uri && this.openerService) {
|
||||
// Store fragment before converting, since asFileUri removes the uri fragment
|
||||
const fragment = uri.fragment;
|
||||
// Convert vscode-file protocol URIs to file since that's what Notebooks expect to work with
|
||||
uri = FileAccess.asFileUri(uri);
|
||||
if (this.isSupportedLink(uri)) {
|
||||
if (uri.fragment && uri.fragment.length > 0 && uri.fsPath === this.workbenchFilePath.fsPath) {
|
||||
this.notebookService.navigateTo(this.notebookUri, uri.fragment);
|
||||
if (fragment && fragment.length > 0 && uri.fsPath === this.workbenchFilePath.fsPath) {
|
||||
this.notebookService.navigateTo(this.notebookUri, fragment);
|
||||
} else {
|
||||
if (uri.scheme === 'file') {
|
||||
let exists = await this.fileService.exists(uri);
|
||||
|
||||
Reference in New Issue
Block a user