提交 f76e0900 编写于 作者: J Joao Moreno

only show nps for english language users

fixes #9795
上级 e0d6db94
......@@ -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);
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册