From 9a94e699e66745fa620c4d51900c35bc31a60318 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Mon, 27 Mar 2023 21:25:53 -0700 Subject: [PATCH] fix: localization for code translations --- src/extension.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/extension.ts b/src/extension.ts index 9abc57ca8..5c41e4672 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -2,6 +2,7 @@ * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ +import * as l10n from '@vscode/l10n'; import { tmpdir } from 'os'; import * as vscode from 'vscode'; import { @@ -31,6 +32,10 @@ import { toggleSkippingFile } from './ui/toggleSkippingFile'; import { VSCodeSessionManager } from './ui/vsCodeSessionManager'; export function activate(context: vscode.ExtensionContext) { + if (vscode.l10n.bundle) { + l10n.config({ contents: vscode.l10n.bundle }); + } + const services = createGlobalContainer({ // On Windows, use the os.tmpdir() since the extension storage path is too long. See: // https://github.com/microsoft/vscode-js-debug/issues/342