Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to choose full compile/incremental compile #364

Merged
merged 3 commits into from
Nov 17, 2017

Conversation

ansyral
Copy link
Contributor

@ansyral ansyral commented Nov 10, 2017

Signed-off-by: xuzho [email protected]

src/extension.ts Outdated
if (selection === 'Incremental') {
isFullCompile = false;
} else {
isFullCompile = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

isFullCompile = selection === 'Incremental'

src/extension.ts Outdated
const elapsed = new Date().getTime() - start;
const humanVisibleDelay = elapsed < 1000? 1000:0;
return new Promise((resolve, reject) =>
{
setTimeout(function () { // set a timeout so user would still see the message when build time is short
Copy link
Collaborator

Choose a reason for hiding this comment

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

function should be replaced with lamda

src/extension.ts Outdated
}
p.report({ message: 'Compiling workspace...' });
const start = new Date().getTime();
return languageClient.sendRequest(CompileWorkspaceRequest.type, isFullCompile).then((s: CompileWorkspaceStatus) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

s => status

Signed-off-by: xuzho <[email protected]>
@ansyral
Copy link
Contributor Author

ansyral commented Nov 14, 2017

@fbricon @gorkem Could you help view the PR?

Copy link
Collaborator

@fbricon fbricon left a comment

Choose a reason for hiding this comment

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

When calling the command via Shift+Alt+B, isFullCompile is not undefined, but an empty object, so the server command is not sent a boolean value. The progress monitor keeps displaying Compiling workspace... forever.

@ansyral
Copy link
Contributor Author

ansyral commented Nov 17, 2017

@fbricon nice catch! I'll add one more check

@fbricon fbricon merged commit dba81df into redhat-developer:master Nov 17, 2017
@fbricon fbricon added this to the End November 2017 milestone Nov 17, 2017
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.

3 participants