Skip to content

Commit

Permalink
fix: fix open file in kernel panel
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk committed Feb 19, 2025
1 parent 85409bd commit 7102fce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archive/opensumi-module-libro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@difizen/opensumi-module-libro",
"version": "0.1.6",
"version": "0.1.10",
"description": "libro on opensumi",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ export const LibroKernelCollapseContentItem: React.FC<Props> = (
className="libro-panel-collapse-kernel-item"
key={notebook.sessionId}
onClick={() => {
const uri = new URI(notebook.path);
let notebookPath = '';
if (!notebook.path.startsWith('/ossfs/')) {
notebookPath = '/ossfs/' + notebook.path;
} else {
notebookPath = notebook.path;
}
const uri = new URI(notebookPath);
editorService.openUris([uri]);
}}
>
Expand Down

0 comments on commit 7102fce

Please sign in to comment.