Skip to content

Commit

Permalink
feat: add .mts extension for the config file glob (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkx authored Jul 3, 2024
1 parent 0fe1ef9 commit ae055c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class Extension implements RunHooks {
];
const fileSystemWatchers = [
// Glob parser does not supported nested group, hence multiple watchers.
this._vscode.workspace.createFileSystemWatcher('**/*playwright*.config.{ts,js,mjs}'),
this._vscode.workspace.createFileSystemWatcher('**/*playwright*.config.{ts,js,mts,mjs}'),
this._vscode.workspace.createFileSystemWatcher('**/*.env*'),
];
this._disposables.push(...fileSystemWatchers);
Expand All @@ -258,7 +258,7 @@ export class Extension implements RunHooks {
this._models.clear();
this._testTree.startedLoading();

const configFiles = await this._vscode.workspace.findFiles('**/*playwright*.config.{ts,js,mjs}', '**/node_modules/**');
const configFiles = await this._vscode.workspace.findFiles('**/*playwright*.config.{ts,js,mts,mjs}', '**/node_modules/**');
for (const configFileUri of configFiles) {
const configFilePath = configFileUri.fsPath;
// TODO: parse .gitignore
Expand Down

0 comments on commit ae055c3

Please sign in to comment.