Skip to content

Commit fff3c40

Browse files
committed
fix: duplicate output channel.
A duplicate output channel is sometimes created when logging. Possibly because it is setup after `ExtensionData`, and any logs from that class or earlier in the run, will create additional channels, without realising there's one already created. - Fixed by moving `logger.setupOutputChannel` call up the run order to before the `addDevEnvVariables` call in the extension file. This should help prevent duplicate channels, and log to only one channel.
1 parent 9254b98 commit fff3c40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import {logger} from "./logger";
77
import {ExtensionData} from "./extensionData";
88
import {addDevEnvVariables} from "./utils";
99

10+
logger.setupOutputChannel();
1011
addDevEnvVariables();
1112

1213
const extensionData = new ExtensionData();
13-
logger.setupOutputChannel();
1414
let configuration = new Configuration();
1515

1616
const disposables: vscode.Disposable[] = [];

0 commit comments

Comments
 (0)