Fix ls clickable links in directory

This commit is contained in:
omuretsu 2023-05-26 12:09:44 -04:00
parent 4503da6226
commit 912fc98d3a

@ -132,7 +132,7 @@ export function ls(args: (string | number | boolean)[], server: BaseServer): voi
)(); )();
const fullPath = combinePath(baseDirectory, props.path); const fullPath = combinePath(baseDirectory, props.path);
function onClick() { function onClick() {
const code = server.scripts.get(props.path)?.content ?? ""; const code = server.scripts.get(fullPath)?.content ?? "";
const map = new Map<ContentFilePath, string>(); const map = new Map<ContentFilePath, string>();
map.set(fullPath, code); map.set(fullPath, code);
Router.toScriptEditor(map); Router.toScriptEditor(map);