Skip to content

Implement Java Overview page - #36

Merged
Rome Li (akaroml) merged 2 commits into
masterfrom
overview
Sep 11, 2018
Merged

Implement Java Overview page#36
Rome Li (akaroml) merged 2 commits into
masterfrom
overview

Conversation

@akaroml

@akaroml Rome Li (akaroml) commented Sep 10, 2018

Copy link
Copy Markdown
Member

This is the second PR to address #32

Comment thread src/extension.ts Outdated
}

function initializeTelemetry(context: vscode.ExtensionContext) {
const packageInfo = require(context.asAbsolutePath('./package.json'));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use extentions.getExtension('extensionId').packageInfo

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed.

Comment thread src/overview/assets/index.ts Outdated

function hideInstalledExtensions(extensions: any) {
$('div[ext]').each((index, elem) => {
let anchor = $(elem);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let ==> const

Comment thread src/overview/index.ts
});
}

export async function createMavenProjectCmdHanlder(context: vscode.ExtensionContext) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See some duplicate. Use some key value pairs to reduce the function number?

@yaohaizh Yaohai Zheng (yaohaizh) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CIL

@Eskibear Yan Zhang (Eskibear) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some telemetry related questions.

Comment thread src/extension.ts Outdated
const packageInfo = require(context.asAbsolutePath('./package.json'));
if (packageInfo) {
if (packageInfo.aiKey) {
initialize(packageInfo.name, packageInfo.version, packageInfo.aiKey, true);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove "true" please.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the first parameter, a) packageInfo.name v.s. b) ${packageInfo.publisher}.${packageInfo.name}?
a) concise and shorter.
b) strictly unique.
It looks you prefer a). Shall we be consistent for all the extensions?

@Eskibear Yan Zhang (Eskibear) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants