Skip to content

Ssh enhancements#28

Merged
Tiagospem merged 21 commits into
devfrom
ssh-enhancements
May 29, 2025
Merged

Ssh enhancements#28
Tiagospem merged 21 commits into
devfrom
ssh-enhancements

Conversation

@Tiagospem
Copy link
Copy Markdown
Owner

No description provided.

Tiagospem added 21 commits May 27, 2025 10:06
@Tiagospem Tiagospem requested a review from Copilot May 29, 2025 11:32
@Tiagospem Tiagospem merged commit b9fe7a7 into dev May 29, 2025
3 checks passed
@Tiagospem Tiagospem deleted the ssh-enhancements branch May 29, 2025 11:32
Copy link
Copy Markdown
Contributor

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 implements SSH enhancements and related optimizations, including improved Monaco editor configuration and an enhanced remote file explorer with directory tree support. Key changes include:

  • Adding optimized SSH methods (list, read, write, exists) and their corresponding IPC handlers.
  • Integrating the optimized SSH service into existing remote file and editor components.
  • Enhancing Monaco editor configuration and adding a new directory tree sidebar component.

Reviewed Changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vite.config.ts Added dependency inclusion for monaco-editor and NODE_ENV definition
src/utils/monaco-config.ts Introduced centralized Monaco editor configuration
src/store/fileExplorer.ts New Pinia store for managing remote file explorer state with expanded directory tree
src/services/remote-file-service.ts Updated remote file methods to utilize optimized SSH calls with fallbacks
src/services/optimized-ssh-service.ts New service providing optimized SSH operations with caching
src/composables/useSQLEditor.ts Updated to call configureMonaco and use optimized SSH service for file operations
src/components/RemoteFileExplorer.vue Enhanced remote file explorer with sidebar integration and improved path handling
src/components/RemoteFileEditor.vue Switched to optimized SSH service for file read/write operations
src/components/DotEnvEditor.vue Integrated Monaco configuration
src/components/DirectoryTreeSidebar.vue New component providing a collapsible directory tree sidebar
src/components/DirectoryTreeNode.vue Added tree node rendering with proper event propagation
electron/preload/index.ts Exposed new optimized SSH IPC methods
electron/modules/ssh.ts Updated SSH command execution to use optimized SSH manager with error handling
electron/helpers/optimized-ssh.ts Introduced connection pooling and optimized SSH command execution
electron/helpers/ssh.ts Removed unused debug code and redundant safety checks
electron/helpers/mysql.ts Minor adjustments in connection pool handling
CLAUDE.md & .claude/settings.local.json Documentation and configuration updates to support new SSH and build processes
Comments suppressed due to low confidence (1)

src/services/optimized-ssh-service.ts:121

  • The replace operation on 'content' does not update the string since its result is not reassigned, potentially causing issues with escaping single quotes. Please assign the result back to 'content' (e.g., content = content.replace(/'/g, "'"'"'")).
content.replace(/'/g, "'"'"'");

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.

2 participants