-
Notifications
You must be signed in to change notification settings - Fork 16
open statements as editable (untitled) documents instead of read-only
#2873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this 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 removes the read-only limitation of Flink statement documents, allowing users to open them as editable documents instead. When clicking a Flink statement in the view, users now get an editable untitled document rather than a read-only one, enabling direct editing and resubmission.
Key changes:
- Removed the
FlinkStatementDocumentProviderclass and its read-only document scheme - Updated
viewStatementSqlCommandto create editableuntitleddocuments with proper metadata - Simplified URI scheme handling to only support
fileanduntitledschemes
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/documentProviders/flinkStatement.ts | Completely removed the read-only document provider class |
| src/documentProviders/flinkStatement.test.ts | Removed corresponding test file |
| src/commands/flinkStatements.ts | Updated to create editable untitled documents instead of read-only ones |
| src/commands/flinkStatements.test.ts | Updated tests to verify untitled document creation |
| src/extension.ts | Removed FlinkStatementDocumentProvider from registered providers |
| src/flinkSql/flinkLanguageClientManager.ts | Simplified URI scheme validation to only allow file/untitled |
| src/flinkSql/flinkLanguageClientManager.test.ts | Updated tests to reflect new URI scheme restrictions |
| src/documentMetadataManager.ts | Removed flinkstatement scheme from supported schemes |
| src/documentMetadataManager.test.ts | Restructured tests and removed flinkstatement-specific test cases |
| CHANGELOG.md | Added user-facing description of the new editable statement behavior |
This comment has been minimized.
This comment has been minimized.
…Flink Statements view instead of the read-only version
…d of read-only scheme" handling
…space; update tests
a5fbf8b to
d36a625
Compare
Summary of Changes
This PR removes the read-only limitation of the document that appears when clicking a statement item from the Flink Statements view in favor of an editable (
untitled-scheme) document. This means instead of having to save a read-only statement document or copy and paste it into a new document, users can edit and resubmit (as a new statement) on the fly.edit-statement.mov
Optional: Click-testing instructions
Optional: Any additional details or context that should be provided?
src/documentMetadataManager.test.tswas reorganized to follow thefile->class->method->testhierarchy, so line changes are inflatedPull request checklist
Please check if your PR fulfills the following (if applicable):
Tests
Release notes