diff --git a/.prettierignore b/.prettierignore index acd8aef..2199449 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,3 +4,4 @@ node_modules .vscode-test out target +CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 423e423..8fb8205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,22 +5,7 @@ ### Features -* add diagnostics ([a69923e](https://github.com/tekumara/typos-vscode/commit/a69923ed20d2a563c8464faa4041fee59259c594)) -* add did_change ([c8f3fa1](https://github.com/tekumara/typos-vscode/commit/c8f3fa1176e60f1d8bdbfda8d5366c2fcd540e99)) -* add did_close ([5ceb15a](https://github.com/tekumara/typos-vscode/commit/5ceb15aa128e0995d29737a8f4ba3ae33fb31df4)) -* add quick fix ([6bc34d8](https://github.com/tekumara/typos-vscode/commit/6bc34d8d678f7f932d0215b782bab432519e4cc6)) -* better error handling + loglevel ([42b36d1](https://github.com/tekumara/typos-vscode/commit/42b36d1cd55cd00b882babacf8c915eefd37f2b9)) -* hello world - initialize with test ([26b91bc](https://github.com/tekumara/typos-vscode/commit/26b91bc01fd1dd809f9758f1428d7be7b01cdab0)) -* restart command + restart when config changes ([22d9eba](https://github.com/tekumara/typos-vscode/commit/22d9eba7b3d7eeb50c00e568b221df5adbd94580)) -* spellcheck untitled docs ([fbcba05](https://github.com/tekumara/typos-vscode/commit/fbcba05b2374bfa2e5d56f3f3ba604b96b8a0a80)) -* support bundled binary ([f980b47](https://github.com/tekumara/typos-vscode/commit/f980b4722e6e79d1bc66b1f505c168746a55dd11)) - - -### Bug Fixes - -* corrections larger than the misspelling ([27f53ef](https://github.com/tekumara/typos-vscode/commit/27f53efe694fe6bdb3576970f352fb28807d9005)) -* suppress code action warning ([cc3dbc0](https://github.com/tekumara/typos-vscode/commit/cc3dbc051bc3cdf8af9cd9ac06abcaad93259c24)) -* trace server ([1f993a6](https://github.com/tekumara/typos-vscode/commit/1f993a6ea7e7543fe7a4e0a6e921491c931df175)) +* Initial release with diagnostics and quick fixes ### Miscellaneous Chores diff --git a/src/test/suite/index.ts b/src/test/suite/index.ts index bfe3eba..2965b47 100644 --- a/src/test/suite/index.ts +++ b/src/test/suite/index.ts @@ -1,6 +1,6 @@ import * as path from "path"; import * as Mocha from "mocha"; -import * as glob from "glob"; +import { glob } from "glob"; export function run(): Promise { // Create the mocha test @@ -13,11 +13,7 @@ export function run(): Promise { const testsRoot = path.resolve(__dirname, ".."); return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));