Skip to content

Commit 9c48b4e

Browse files
committed
[code] Make VS Code the default IDE for new users
1 parent 8ff6ed7 commit 9c48b4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/gitpod-db/src/typeorm/user-db-impl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export class TypeORMUserDBImpl implements UserDB {
7272
id: uuidv4(),
7373
creationDate: new Date().toISOString(),
7474
identities: [],
75-
allowsMarketingCommunication: false
75+
allowsMarketingCommunication: false,
76+
additionalData: { ideSettings: { defaultIde: 'code' } },
7677
};
7778
await this.storeUser(user);
7879
return user;

components/server/src/user/user-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class UserService {
112112
}
113113

114114
private cachedIsFirstUser: boolean | undefined = undefined;
115-
public async createUser({identity, token, userUpdate }: CreateUserParams): Promise<User> {
115+
public async createUser({ identity, token, userUpdate }: CreateUserParams): Promise<User> {
116116
log.debug('Creating new user.', { identity, 'login-flow': true });
117117

118118
const prevIsFirstUser = this.cachedIsFirstUser;

0 commit comments

Comments
 (0)