Skip to content

Commit 28792d0

Browse files
committed
Send the user along the server request
1 parent 375999e commit 28792d0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/server/src/ide-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export class IDEService {
3434

3535
private cacheConfig?: IDEConfig;
3636

37-
async getIDEConfig(): Promise<IDEConfig> {
37+
async getIDEConfig(request: IdeServiceApi.GetConfigRequest): Promise<IDEConfig> {
3838
try {
39-
let resp = await this.ideService.getConfig({});
39+
let resp = await this.ideService.getConfig(request);
4040
let config: IDEConfig = JSON.parse(resp.content);
4141
this.cacheConfig = config;
4242
return config;

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3327,7 +3327,8 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
33273327
}
33283328

33293329
async getIDEOptions(ctx: TraceContext): Promise<IDEOptions> {
3330-
const ideConfig = await this.ideService.getIDEConfig();
3330+
const user = this.checkUser("identifyUser");
3331+
const ideConfig = await this.ideService.getIDEConfig({ user });
33313332
return ideConfig.ideOptions;
33323333
}
33333334

0 commit comments

Comments
 (0)