vscode-remove-comments icon indicating copy to clipboard operation
vscode-remove-comments copied to clipboard

Issue Removing Multi-Line PowerShell comments with "Better Comments" extension enabled

Open jmaincpa opened this issue 3 years ago • 0 comments

       $keep = "This Line"
        <#TODO
        Get Clusters
            Get Cluster Datastores
                Categorize Datastores
            Get Cluster VMHosts
                Get VMHosts LUNs for Cluster
                Match LUNs to Datastores
            Get list of LUNs and Datastores which should exist on each cluster vmHost

            foreach vmHost
                Get VMHost Datastores
                    Get Categorization for datastores
                Get VMHost Fast LUNs
                    Categorize LUNs

        #>
        $keep = "This Line Too"

CTRL-Shift-P Remove All Comments

Results in

        $keep = "This Line"
        <
        Get Clusters
            Get Cluster Datastores
                Categorize Datastores
            Get Cluster VMHosts
                Get VMHosts LUNs for Cluster
                Match LUNs to Datastores
            Get list of LUNs and Datastores which should exist on each cluster vmHost

            foreach vmHost
                Get VMHost Datastores
                    Get Categorization for datastores
                Get VMHost Fast LUNs
                    Categorize LUNs

        
        $keep = "This Line Too"

Should have resulted in

        $keep = "This Line"
        $keep = "This Line Too"

Note: Add-On worked fine with many other comment types in the same file.

jmaincpa avatar Jul 26 '20 11:07 jmaincpa