Skip to content

skipFiles

zero-plusplus edited this page Oct 3, 2021 · 1 revision

Note that the skipping process is technically slow, so if large loops are involved, there will be more than a few seconds of waiting time.

This attribute is useful when you want to skip files that do not need to be tested, such as external libraries.

The path can be specified using glob. For example, to skip all of the lib folder, specify the following.

"skipFiles": [
  "${workspaceFolder}/lib/**/*.ahk"
]

The ** in the above example indicates a recursive search, including subfolders. *.ahk will search for all files with the file extension ahk. In other words, this means that all ahk files in the lib folder will be skipped.

However, you may not want to skip certain files in the lib folder (for example, your own libraries). In such a case, prefix it with `! at the beginning as follows.

"skipFiles": [
  "${workspaceFolder}/lib/**/*.ahk",
  "!${workspaceFolder}/lib/MyLibrary.ahk",
]

By doing this, you can test only your own libraries.