mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-18 09:53:23 +01:00
@@ -9,6 +9,7 @@ import * as nls from 'vs/nls';
|
||||
import { shell } from 'electron';
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { Action } from 'vs/base/common/actions';
|
||||
import { language } from 'vs/base/common/platform';
|
||||
import { IWorkbenchContributionsRegistry, IWorkbenchContribution, Extensions as WorkbenchExtensions } from 'vs/workbench/common/contributions';
|
||||
import { Registry } from 'vs/platform/platform';
|
||||
import { IMessageService, Severity } from 'vs/platform/message/common/message';
|
||||
@@ -95,7 +96,7 @@ class NPSContribution implements IWorkbenchContribution {
|
||||
}
|
||||
}
|
||||
|
||||
if (product.npsSurveyUrl) {
|
||||
if (language === 'en' && product.npsSurveyUrl) {
|
||||
const workbenchRegistry = <IWorkbenchContributionsRegistry>Registry.as(WorkbenchExtensions.Workbench);
|
||||
workbenchRegistry.registerWorkbenchContribution(NPSContribution);
|
||||
}
|
||||
Reference in New Issue
Block a user