Skip to content

Commit b5ebf0e

Browse files
patnikoCopilot
andcommitted
Run formatters across SDKs
gofmt fixes struct field alignment in Client type, prettier reflows handlePermissionRequested signature. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 474de8b commit b5ebf0e

File tree

3 files changed

+26
-28
lines changed

3 files changed

+26
-28
lines changed

go/client.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,29 +69,29 @@ import (
6969
// }
7070
// defer client.Stop()
7171
type Client struct {
72-
options ClientOptions
73-
process *exec.Cmd
74-
client *jsonrpc2.Client
75-
actualPort int
76-
actualHost string
77-
state ConnectionState
78-
sessions map[string]*Session
79-
sessionsMux sync.Mutex
80-
isExternalServer bool
72+
options ClientOptions
73+
process *exec.Cmd
74+
client *jsonrpc2.Client
75+
actualPort int
76+
actualHost string
77+
state ConnectionState
78+
sessions map[string]*Session
79+
sessionsMux sync.Mutex
80+
isExternalServer bool
8181
negotiatedProtocolVersion int
82-
conn net.Conn // stores net.Conn for external TCP connections
83-
useStdio bool // resolved value from options
84-
autoStart bool // resolved value from options
85-
autoRestart bool // resolved value from options
86-
modelsCache []ModelInfo
87-
modelsCacheMux sync.Mutex
88-
lifecycleHandlers []SessionLifecycleHandler
89-
typedLifecycleHandlers map[SessionLifecycleEventType][]SessionLifecycleHandler
90-
lifecycleHandlersMux sync.Mutex
91-
startStopMux sync.RWMutex // protects process and state during start/[force]stop
92-
processDone chan struct{}
93-
processErrorPtr *error
94-
osProcess atomic.Pointer[os.Process]
82+
conn net.Conn // stores net.Conn for external TCP connections
83+
useStdio bool // resolved value from options
84+
autoStart bool // resolved value from options
85+
autoRestart bool // resolved value from options
86+
modelsCache []ModelInfo
87+
modelsCacheMux sync.Mutex
88+
lifecycleHandlers []SessionLifecycleHandler
89+
typedLifecycleHandlers map[SessionLifecycleEventType][]SessionLifecycleHandler
90+
lifecycleHandlersMux sync.Mutex
91+
startStopMux sync.RWMutex // protects process and state during start/[force]stop
92+
processDone chan struct{}
93+
processErrorPtr *error
94+
osProcess atomic.Pointer[os.Process]
9595

9696
// RPC provides typed server-scoped RPC methods.
9797
// This field is nil until the client is connected via Start().

nodejs/src/client.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,12 +1427,10 @@ export class CopilotClient {
14271427
}
14281428
}
14291429

1430-
private async handlePermissionRequested(
1431-
sessionId: string,
1432-
event: SessionEvent
1433-
): Promise<void> {
1434-
const data = (event as unknown as { data: { requestId: string; permissionRequest: unknown } })
1435-
.data;
1430+
private async handlePermissionRequested(sessionId: string, event: SessionEvent): Promise<void> {
1431+
const data = (
1432+
event as unknown as { data: { requestId: string; permissionRequest: unknown } }
1433+
).data;
14361434
if (!data || !data.requestId || !data.permissionRequest) {
14371435
return;
14381436
}
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)