diff --git a/README.md b/README.md index 2a2ee515..0df883e6 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,6 @@ or install the code-server extension via [Open VSX](https://open-vsx.org/extensi Please right-click the SQLite3 files (`*.db` or `*.sqlite3`) in the VS Code file explorer and select the "Open in Optuna Dashboard" command from the dropdown menu. This extension leverages the browser-only version of Optuna Dashboard, so the same limitations apply. -Please note that we have confirmed the behavior of the code-server extension can be unstable. -When opening SQLite files, the dashboard may not appear on the first attempt, but it should be displayed upon a second try. - ## Submitting patches If you want to contribute, please check [Developers Guide](./CONTRIBUTING.md). diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 3179d3f5..3375c469 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -228,9 +228,6 @@ or install the code-server extension via `Open VSX { + switch (message.type) { + case "webviewDidLoad": + const storageContentBase64 = await readFileAsBase64(fileUri) + panel.webview.postMessage({ + type: "optunaStorage", + content: storageContentBase64, + }) + break + } }) } ) @@ -64,6 +69,14 @@ function getWebviewContent(indexJsUri: vscode.Uri): string { Optuna Dashboard (Wasm ver.) +