提交 f8023e7e 编写于 作者: R Ramya Achutha Rao

Add sourceInfo when installing from welcomePage or cli

上级 982277d9
......@@ -110,7 +110,7 @@ class Main {
return TPromise.as(null);
}
return this.extensionGalleryService.query({ names: [id] })
return this.extensionGalleryService.query({ names: [id], source: 'cli' })
.then<IPager<IGalleryExtension>>(null, err => {
if (err.responseText) {
try {
......
......@@ -365,7 +365,7 @@ class WelcomePage {
this.messageService.show(Severity.Info, strings.alreadyInstalled.replace('{0}', extensionSuggestion.name));
return;
}
const foundAndInstalled = installedExtension ? TPromise.as(true) : this.extensionGalleryService.query({ names: [extensionSuggestion.id] })
const foundAndInstalled = installedExtension ? TPromise.as(true) : this.extensionGalleryService.query({ names: [extensionSuggestion.id], source: telemetryFrom })
.then(result => {
const [extension] = result.firstPage;
if (!extension) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册