plibither8 / vscode-remove-comments

🚫 VS Code extension to remove all comments from your code at once — 60+ languages supported
https://marketplace.visualstudio.com/items?itemName=plibither8.remove-comments
MIT License
36 stars 13 forks source link

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

Open jmaincpa opened 4 years ago

jmaincpa commented 4 years ago
       $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.