Skip to content

Commit

Permalink
Merge pull request #77 from matepek/development
Browse files Browse the repository at this point in the history
chokidar related bug fix
  • Loading branch information
matepek authored Mar 18, 2019
2 parents 415671b + 1139244 commit d229c21
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 37 deletions.
1 change: 0 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ test_script:
on_failure:
- dir .\out\test
- type .\out\test\FailedTestLogs\log_*.txt
#- type .\out\test\alltestlogs.txt
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.3.27]

### Fixed

- a bug related to abs-path watcher (`chokidar`).

## [2.3.26] - 2019-03-18

### Added
Expand Down
73 changes: 46 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@
"@types/entities": "^1.1.1",
"@types/fs-extra": "^5.0.5",
"@types/mocha": "^5.2.6",
"@types/node": "^10.12.30",
"@types/node": "^10.14.1",
"@types/request-promise": "4.1.42",
"@types/sinon": "^5.0.7",
"@types/xml2js": "^0.4.3",
"@typescript-eslint/eslint-plugin": "^1.4.2",
"@typescript-eslint/parser": "^1.4.2",
"deep-equal": "^1.0.1",
"eslint": "^5.15.1",
"eslint": "^5.15.2",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-prettier": "^3.0.1",
"fs-extra": "^7.0.1",
Expand Down
14 changes: 7 additions & 7 deletions src/TestExecutableInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ export class TestExecutableInfo implements vscode.Disposable {
ignorePermissionErrors: true,
});

this._absWatcherReady = new Promise(resolve => {
this._absWatcher!.once('ready', resolve);
});

// getWatched works after the ready event
await this._absWatcherReady;

this._absWatcher.on('all', (event: string, filePath: string) => {
this._shared.log.info('absWacher all event:', event, filePath);
this._handleEverything(vscode.Uri.file(filePath));
Expand All @@ -110,13 +117,6 @@ export class TestExecutableInfo implements vscode.Disposable {
this._shared.log.error('absWacher error:', args);
});

this._absWatcherReady = new Promise(resolve => {
this._absWatcher!.once('ready', resolve);
});

// getWatched works after the ready event
await this._absWatcherReady;

const watched = this._absWatcher.getWatched();

for (const dir in watched) {
Expand Down

0 comments on commit d229c21

Please sign in to comment.