Skip to content

Commit 0e2ddc6

Browse files
committed
Move the imports.
1 parent 58f5ae3 commit 0e2ddc6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Extension/src/common-remote-safe.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import { basename, delimiter, dirname, isAbsolute, normalize, resolve } from 'no
1111
import { isMainThread } from 'node:worker_threads';
1212

1313
import { isWindows } from './constants';
14+
import { localize as localizationLocalize } from './localization';
15+
import * as logger from './logger';
16+
import { getOutputChannelLogger, note as loggerNote } from './logger';
1417
import { ManualPromise } from './Utility/Async/manualPromise';
1518
import { RemoteConnection } from './Utility/Remoting/snare';
1619
import { is } from './Utility/System/guards';
@@ -27,10 +30,6 @@ import { is } from './Utility/System/guards';
2730
let remoteConnection: RemoteConnection | undefined;
2831

2932
// In the main thread, grab the logger and localize functions directly.
30-
import { localize as localizationLocalize } from './localization';
31-
import * as logger from './logger';
32-
import { getOutputChannelLogger, note as loggerNote } from './logger';
33-
3433
const logFn = isMainThread ? logger.log : () => { };
3534
const noteFn = isMainThread ? loggerNote : () => { };
3635
const localizeFn = isMainThread ? localizationLocalize : (info: { key: string; comment: string[] } | string, message: string, ...args: (string | number | boolean | undefined | null)[]) => message.replace(/\{(\d+)\}/g, (_, index) => String(args[Number(index)] ?? 'undefined'));

0 commit comments

Comments
 (0)