Skip to content

Commit d193ab9

Browse files
committed
Decrease data-bridge timeout from 30 to 10 seconds. Don't show error message on timeout as the error is expected under certain circumstances.
1 parent f544518 commit d193ab9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/theia/env-strategy.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class DataBridgeStrategy implements TheiaEnvStrategy {
8383
private static readonly DATA_BRIDGE_EXTENSION_ID = "tum-aet.data-bridge";
8484
private static readonly COMMAND = "dataBridge.getEnv";
8585
private static readonly POLL_INTERVAL_MS = 500;
86-
private static readonly TIMEOUT_MS = 30000;
86+
private static readonly TIMEOUT_MS = 10000;
8787

8888
private outputChannel: vscode.OutputChannel;
8989

@@ -144,9 +144,6 @@ export class DataBridgeStrategy implements TheiaEnvStrategy {
144144
this.outputChannel.appendLine(
145145
"Timeout waiting for environment variables, falling back to process env",
146146
);
147-
vscode.window.showWarningMessage(
148-
"Timeout waiting for data bridge, falling back to environment variables",
149-
);
150147
return new ProcessEnvStrategy().load();
151148
}
152149

0 commit comments

Comments
 (0)