Skip to content

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

Open
Ivanruii wants to merge 2 commits into
devfrom
feature/#849-hide-open-save-toolbar-vscode
Open

Feature/#849 hide open and save buttons on vscode#851
Ivanruii wants to merge 2 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

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

2 participants