Skip to content

Commit 51542cd

Browse files
committed
Simplify base URI extraction in EditorManager
1 parent 91f7428 commit 51542cd

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/lib/editorManager.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ import ScrollBar from "components/scrollbar";
6464
import SideButton, { sideButtonContainer } from "components/sideButton";
6565
import keyboardHandler, { keydownState } from "handlers/keyboard";
6666
import actions from "handlers/quickTools";
67-
import Url from "utils/Url";
6867
// TODO: Update EditorFile for CodeMirror compatibility
6968
import EditorFile from "./editorFile";
7069
import openFile from "./openFile";
@@ -494,14 +493,7 @@ async function EditorManager($header, $body) {
494493
if (uri.startsWith(base)) return base;
495494
} catch (_) {}
496495
}
497-
if (uri.includes("::")) {
498-
return uri.split("::")[0];
499-
}
500-
try {
501-
return Url.dirname(uri);
502-
} catch (_) {
503-
return null;
504-
}
496+
return uri;
505497
}
506498

507499
function detachActiveLsp() {

0 commit comments

Comments
 (0)