Skip to content

fix(vscode): improve the tcloud stability#4734

Merged
benfdking merged 1 commit intomainfrom
adding_mock_tcloud_for_testing
Jun 13, 2025
Merged

fix(vscode): improve the tcloud stability#4734
benfdking merged 1 commit intomainfrom
adding_mock_tcloud_for_testing

Conversation

@benfdking
Copy link
Copy Markdown
Contributor

@benfdking benfdking commented Jun 13, 2025

  • add mock tcloud for testing tcloud flows
  • improved installing enterprise messaging
  • added lock around the tcloud install process to make more stable
  • removed unneedded lsp function that was causing issues
  • fix path finding
  • add prettier to recommended extensions

@benfdking benfdking requested a review from Copilot June 13, 2025 17:26
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 aims to improve tcloud stability within the VS Code extension by adding a mock tcloud CLI, improving installation flows for enterprise messaging (including a lock mechanism), cleaning up obsolete functionality, and updating recommended extensions.

  • Introduces a REPO_ROOT constant for test utilities.
  • Adds a comprehensive mock tcloud CLI (with pyproject.toml, CLI, README, and tests).
  • Implements a lock mechanism in sqlmesh installation and removes an unused LSP did_change handler.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vscode/extension/tests/utils.ts Added REPO_ROOT constant for computing repository root.
vscode/extension/tests/tcloud/pyproject.toml New configuration for the mock tcloud package.
vscode/extension/tests/tcloud/mock_tcloud/cli.py New mock tcloud CLI implementation for testing purposes.
vscode/extension/tests/tcloud/mock_tcloud/init.py Minimal package initialization for the mock tcloud CLI.
vscode/extension/tests/tcloud/README.md Documentation for the mock tcloud CLI usage in tests.
vscode/extension/tests/tcloud.spec.ts Integration tests for tcloud flows via mock CLI and VS Code.
vscode/extension/src/utilities/sqlmesh/sqlmesh.ts Added lock mechanism for sqlmesh installation and updated progress message.
tooling/vscode/extensions.json Updated recommended extensions to include prettier.
sqlmesh/lsp/main.py Removed the unused did_change handler and refactored context lookup.
Comments suppressed due to low confidence (1)

sqlmesh/lsp/main.py:294

  • [nitpick] The removal of the did_change handler appears intentional; please ensure that diagnostic updates on document changes are managed by alternative mechanisms to maintain LSP functionality.
@self.server.feature(types.TEXT_DOCUMENT_DID_CHANGE)

Comment thread vscode/extension/tests/utils.ts
Comment thread sqlmesh/lsp/main.py
@benfdking benfdking force-pushed the adding_mock_tcloud_for_testing branch 2 times, most recently from 239097b to cacf4fd Compare June 13, 2025 17:35
- add mock tcloud for testing tcloud flows
- improved installing enterprise messaging
- added lock around the tcloud install process to make more stable
- removed unneedded lsp function that was causing issues
@benfdking benfdking force-pushed the adding_mock_tcloud_for_testing branch from cacf4fd to c0e271a Compare June 13, 2025 21:20
@benfdking benfdking merged commit 23083f9 into main Jun 13, 2025
25 checks passed
@benfdking benfdking deleted the adding_mock_tcloud_for_testing branch June 13, 2025 23:55
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.

3 participants