Skip to content

Feature/#849 hide open and save buttons on vscode#851

Merged
manudous merged 3 commits into
devfrom
feature/#849-hide-open-save-toolbar-vscode
May 19, 2026
Merged

Feature/#849 hide open and save buttons on vscode#851
manudous merged 3 commits into
devfrom
feature/#849-hide-open-save-toolbar-vscode

Conversation

@Ivanruii
Copy link
Copy Markdown
Collaborator

Closes #849

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #849 by hiding the Open and Save toolbar buttons when the app is running inside the VS Code extension environment.

Changes:

  • Adds VS Code environment detection in ToolbarPod via isVSCodeEnv().
  • Conditionally hides Open and Save buttons when env=vscode.
  • Keeps Export available in edit mode regardless of environment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +24 to +36
@@ -26,19 +28,23 @@ export const ToolbarPod: React.FC = () => {
<NewButton />
</li>
)}
<li>
<OpenButton />
</li>
{isEditMode && (
<>
<li>
<SaveButton />
</li>

<li>
<ExportButton />
</li>
</>
{!isVSCode && (
<li>
<OpenButton />
</li>
)}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@manudous manudous merged commit 1a85b57 into dev May 19, 2026
3 checks passed
@manudous manudous deleted the feature/#849-hide-open-save-toolbar-vscode branch May 19, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VSCode Extension] Hide Open and Save toolbar buttons

3 participants