Files
vscode/src/vs/code/node/sharedProcess/contrib/localizationsUpdater.ts
T
2023-02-17 10:18:01 +01:00

24 lines
878 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Disposable } from 'vs/base/common/lifecycle';
import { ILanguagePackService } from 'vs/platform/languagePacks/common/languagePacks';
import { NativeLanguagePackService } from 'vs/platform/languagePacks/node/languagePacks';
export class LocalizationsUpdater extends Disposable {
constructor(
@ILanguagePackService private readonly localizationsService: NativeLanguagePackService
) {
super();
this.updateLocalizations();
}
private updateLocalizations(): void {
this.localizationsService.update();
}
}