-
Notifications
You must be signed in to change notification settings - Fork 455
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
Conversation
Signed-off-by: xuzho <[email protected]>
src/extension.ts
Outdated
if (selection === 'Incremental') { | ||
isFullCompile = false; | ||
} else { | ||
isFullCompile = true; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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]>
There was a problem hiding this 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.
@fbricon nice catch! I'll add one more check |
Signed-off-by: xuzho <[email protected]>
e318723
to
ddaca46
Compare
Signed-off-by: xuzho [email protected]