Skip to content

getFormattingScanner: Ensure scanner is closed, and avoid global variables#18293

Merged
1 commit merged into
masterfrom
getFormattingScanner
Sep 7, 2017
Merged

getFormattingScanner: Ensure scanner is closed, and avoid global variables#18293
1 commit merged into
masterfrom
getFormattingScanner

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Sep 6, 2017

  • Don't require the user to explicitly .close() the formatting scanner; just use a callback and close when the callback is over. (Ensuring that resources are reclaimed may help with avoiding global-state bugs like in gulp runtests --test ge fails #10683.)
  • Don't use a global scanner variable, which is entirely unnecessary as it's only used locally to one function.

@ghost ghost requested a review from aozgaa September 6, 2017 21:55
@ghost ghost merged commit 817c329 into master Sep 7, 2017
@ghost ghost deleted the getFormattingScanner branch September 7, 2017 14:23
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
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.

2 participants