From 8dfd8ade240d851e779d6f68009d66392a312276 Mon Sep 17 00:00:00 2001 From: Aaron Nelson Date: Thu, 1 Oct 2020 06:53:39 -0400 Subject: [PATCH] Update ConvertToSQLNoteBook.ps1 Added extracting SilglelineComment to text cells. --- ConvertToSQLNoteBook.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConvertToSQLNoteBook.ps1 b/ConvertToSQLNoteBook.ps1 index 4ab86b8..5fc0f23 100644 --- a/ConvertToSQLNoteBook.ps1 +++ b/ConvertToSQLNoteBook.ps1 @@ -47,7 +47,7 @@ foreach($Batch in $ParsedSql.Batches) { $id++ } -$ScriptFrags = (Get-ParsedSql -ScriptPath $ScriptPath).ScriptTokenStream.where({$_.TokenType -eq 'MultilineComment'}) +$ScriptFrags = (Get-ParsedSql -ScriptPath $ScriptPath).ScriptTokenStream.where({$_.TokenType -in 'MultilineComment', 'SilglelineComment'}) #If there are no comments to extract, we will skip the next section of code. if($ScriptFrags){ $Comments = @()