@@ -37,13 +37,13 @@ type PostCreateState struct {
3737// PollPostCreateStates watches for state changes in a codespace,
3838// and calls the supplied poller for each batch of state changes.
3939// It runs until it encounters an error, including cancellation of the context.
40- func PollPostCreateStates (ctx context.Context , log logger , apiClient apiClient , user * api.User , c * codespace.Codespace , poller func ([]PostCreateState )) (err error ) {
41- token , err := apiClient .GetCodespaceToken (ctx , user .Login , c .Name )
40+ func PollPostCreateStates (ctx context.Context , log logger , apiClient apiClient , user * api.User , cs * codespace.Codespace , poller func ([]PostCreateState )) (err error ) {
41+ token , err := apiClient .GetCodespaceToken (ctx , user .Login , cs .Name )
4242 if err != nil {
4343 return fmt .Errorf ("getting codespace token: %w" , err )
4444 }
4545
46- session , err := ConnectToLiveshare (ctx , log , apiClient , user .Login , token , c )
46+ session , err := ConnectToLiveshare (ctx , log , apiClient , user .Login , token , cs )
4747 if err != nil {
4848 return fmt .Errorf ("connect to Live Share: %w" , err )
4949 }
0 commit comments