Skip to content

Commit

Permalink
feat(proto): add contexts for service blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterCardenas authored and lewis6991 committed Nov 22, 2024
1 parent 1147c42 commit 8e412eb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions queries/proto/context.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
([
(enum)
(message)
(service)
] @context)
37 changes: 37 additions & 0 deletions test/lang/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,32 @@ message SomeMessage { // {{CONTEXT}}



// {{TEST}}
service SomeService { // {{CONTEXT}}

rpc SomeMethod(SomeMessage) returns (SomeMessage);

rpc AnotherMethod(SomeMessage) returns (SomeMessage);











rpc GetRandomUser(SomeMessage) returns (SomeMessage);

rpc GenerateRandomData(SomeMessage) returns (SomeMessage);

rpc FetchRandomStats(SomeMessage) returns (SomeMessage);

rpc CreateRandomProfile(SomeMessage) returns (SomeMessage);

rpc ComputeRandomMetrics(SomeMessage) returns (SomeMessage);



Expand All @@ -104,4 +129,16 @@ message SomeMessage { // {{CONTEXT}}



// {{CURSOR}}
}











0 comments on commit 8e412eb

Please sign in to comment.