-
Notifications
You must be signed in to change notification settings - Fork 0
Add VSCode Extension for Object UI #72
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
…ext detection Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
|
@copilot 继续 |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
|
@copilot review again |
The VSCode extension is complete and ready for review. Here's what has been implemented: ✅ Features Complete:
✅ Quality Checks:
📦 Package Structure: The extension is production-ready and can be published to the VSCode Marketplace following the instructions in |
| language: 'json', | ||
| }); | ||
|
|
||
| const editor = await vscode.window.showTextDocument(doc); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 15 days ago
To fix the problem, remove the unused variable binding while preserving the call to vscode.window.showTextDocument(doc) so that the editor still opens. This eliminates the unused variable and its initialization cost without changing behavior.
Concretely, in packages/vscode-extension/src/extension.ts, within the createNewSchema function, replace the line that declares const editor = await vscode.window.showTextDocument(doc); with a bare await vscode.window.showTextDocument(doc);. No other references to editor exist, so no further changes are needed, and no new imports or definitions are required.
-
Copy modified line R264
| @@ -261,7 +261,7 @@ | ||
| language: 'json', | ||
| }); | ||
|
|
||
| const editor = await vscode.window.showTextDocument(doc); | ||
| await vscode.window.showTextDocument(doc); | ||
|
|
||
| // Suggest filename | ||
| const fileName = await vscode.window.showInputBox({ |
📦 Bundle Size Report
Size Limits
|
|
✅ All checks passed!
|
VSCode Extension Design for Object UI
Complete implementation of a production-ready VSCode extension for Object UI that provides a comprehensive development experience for schema-driven UI development.
Features Implemented
Core Functionality
Developer Tools
.objectui.json,.oui.json, andapp.jsonfilesImplementation Details
src/extension.ts- Activation and command registrationCompletionProvider.ts- Context-aware IntelliSenseHoverProvider.ts- Documentation on hover with Markdown formattingSchemaValidator.ts- Real-time schema validation with diagnosticsPreviewProvider.ts- Webview-based live previewDocumentation
Quality Assurance
Project Updates
The extension is production-ready and can be published to the VSCode Marketplace immediately.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.