(baseUrl: string, fileName: string, context?: sqlops.ObjectExplorerContext)
| 7 | const baseUrl = "https://raw.githubusercontent.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/main/"; |
| 8 | |
| 9 | async function spblitzscript(baseUrl: string, fileName: string, context?: sqlops.ObjectExplorerContext) { |
| 10 | if(context) { vscode.window.showInformationMessage("context before get: "+ context.connectionProfile.id)}; |
| 11 | let options = { |
| 12 | uri: baseUrl + fileName, |
| 13 | }; |
| 14 | console.log('Bringing in the first responder kit from the mothership.'); |
| 15 | const scriptText = await request.get(options); |
| 16 | if(context) { vscode.window.showInformationMessage("context after get: "+ context.connectionProfile.id)}; |
| 17 | new placeScript().placescript(fileName, scriptText, context); |
| 18 | } |
| 19 | |
| 20 | //importing all first responder kit scripts |
| 21 | export let getblitzall = async (context?: sqlops.ObjectExplorerContext) => { |
no test coverage detected