Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Changed CodeInspector.inspectFile to accept provider.scanFile functions that return the result via a promise#6606

Closed
jdiehl wants to merge 1 commit intoadobe:masterfrom
jdiehl:CodeInspection-async-scanFile
Closed

Changed CodeInspector.inspectFile to accept provider.scanFile functions that return the result via a promise#6606
jdiehl wants to merge 1 commit intoadobe:masterfrom
jdiehl:CodeInspection-async-scanFile

Conversation

@jdiehl
Copy link
Copy Markdown

@jdiehl jdiehl commented Jan 21, 2014

This change enables third party extensions to use the CodeInspector APIs to report errors from external compilers that are triggered via node and thus must be run asynchronously. The change retains backwards compatibility.

@jdiehl
Copy link
Copy Markdown
Author

jdiehl commented Jan 21, 2014

This change would in particular allow the less-autocompile extension to perform proper error reporting.

@busykai
Copy link
Copy Markdown
Contributor

busykai commented Jan 21, 2014

Good to see that there are many needing this. #5137 and some other were filed against the same problem. Currently there's a PR #6530 pending to accomplish the same (uses slightly different approach).

@jdiehl
Copy link
Copy Markdown
Author

jdiehl commented Jan 22, 2014

Sorry for not checking the issues for a similar item. I will leave the pull request open for reference. Feel free to close it when it becomes redundant.

@ghost ghost assigned peterflynn Jan 24, 2014
@ingorichter
Copy link
Copy Markdown
Contributor

@jdiehl Thanks for your contribution. I'm going to close this PR in favor of #6530 since the PR provides the same functionality and we have unit tests for the new behavior.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants