* fix: Generate type-safe code for the Vscode Protobus service
This commit establishes a fully type-safe ProtoBus system by fixing the streaming
response handler type definitions and completing the protobuf-driven architecture.
Key improvements:
• **Complete type safety**: ProtoBus is now completely type-safe with compile-time
validation of all gRPC service definitions, request/response types, and handler
signatures
• **Simplified message creation**: No longer need to manually call `Message.create({...})`
- the generated code handles message instantiation automatically
• **Automated proto parsing**: Eliminated manual parsing of proto files - the build
system now automatically generates TypeScript definitions from protobuf schemas
• **Proto files as source of truth**: Service names, method names, and message types
are now definitively controlled by the proto files, ensuring consistency across
the entire codebase
• **Handler type checking**: ProtoBus handlers are fully type-checked including:
- Request and response type validation
- Handler method name verification against proto definitions
- Streaming vs unary handler signature enforcement
This establishes a robust, type-safe foundation for all gRPC communication between
the extension host and webview components.
* Remove commented out code in script
* Just call handlers directly
17 lines
287 B
JavaScript
17 lines
287 B
JavaScript
// eslint-rules/index.js
|
|
const noDirectVscodeApi = require("./no-direct-vscode-api")
|
|
|
|
module.exports = {
|
|
rules: {
|
|
"no-direct-vscode-api": noDirectVscodeApi,
|
|
},
|
|
configs: {
|
|
recommended: {
|
|
plugins: ["local"],
|
|
rules: {
|
|
"local/no-direct-vscode-api": "warn",
|
|
},
|
|
},
|
|
},
|
|
}
|