Skip to content

Commit d6b9de0

Browse files
committed
client: Change applyEdit return type
1 parent da30f9a commit d6b9de0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ type Client interface {
214214
Telemetry(ctx context.Context, params interface{}) (err error)
215215
RegisterCapability(ctx context.Context, params *RegistrationParams) (err error)
216216
UnregisterCapability(ctx context.Context, params *UnregistrationParams) (err error)
217-
ApplyEdit(ctx context.Context, params *ApplyWorkspaceEditParams) (result bool, err error)
217+
ApplyEdit(ctx context.Context, params *ApplyWorkspaceEditParams) (result *ApplyWorkspaceEditResponse, err error)
218218
Configuration(ctx context.Context, params *ConfigurationParams) (result []interface{}, err error)
219219
WorkspaceFolders(ctx context.Context) (result []WorkspaceFolder, err error)
220220
}
@@ -367,12 +367,12 @@ func (c *client) UnregisterCapability(ctx context.Context, params *Unregistratio
367367
}
368368

369369
// ApplyEdit sends the request from the server to the client to modify resource on the client side.
370-
func (c *client) ApplyEdit(ctx context.Context, params *ApplyWorkspaceEditParams) (result bool, err error) {
370+
func (c *client) ApplyEdit(ctx context.Context, params *ApplyWorkspaceEditParams) (result *ApplyWorkspaceEditResponse, err error) {
371371
c.logger.Debug("call " + MethodWorkspaceApplyEdit)
372372
defer c.logger.Debug("end "+MethodWorkspaceApplyEdit, zap.Error(err))
373373

374374
if err := Call(ctx, c.Conn, MethodWorkspaceApplyEdit, params, &result); err != nil {
375-
return false, err
375+
return nil, err
376376
}
377377

378378
return result, nil

0 commit comments

Comments
 (0)