Notebooks: Fix Internal Links on Windows (#9513)

* Improve workbench file path detection

* Use fspath instead
This commit is contained in:
Chris LaFreniere
2020-03-09 18:10:24 -07:00
committed by GitHub
parent 6e14f13753
commit 1fb3faeda1

View File

@@ -58,7 +58,7 @@ export class LinkHandlerDirective {
// ignore
}
if (uri && this.openerService && this.isSupportedLink(uri)) {
if (uri.fragment && uri.fragment.length > 0 && uri.path === this.workbenchFilePath.path) {
if (uri.fragment && uri.fragment.length > 0 && uri.fsPath === this.workbenchFilePath.fsPath) {
this.notebookService.navigateTo(this.notebookUri, uri.fragment);
} else {
this.openerService.open(uri).catch(onUnexpectedError);