Function
shouldRunTest
(document: vscode.TextDocument)
Source from the content-addressed store, hash-verified
| 57 | if (!DISABLE_RUN_ON_SAVE) { |
| 58 | // verify if file test should run based on document saved |
| 59 | const shouldRunTest = (document: vscode.TextDocument): boolean => { |
| 60 | // must be a file |
| 61 | if (document.uri.scheme !== 'file') { |
| 62 | return false |
| 63 | } |
| 64 | return true |
| 65 | } |
| 66 | |
| 67 | // setup onSave hook |
| 68 | vscode.workspace.onDidSaveTextDocument((document: vscode.TextDocument) => { |
Tested by
no test coverage detected