When a process block is commented out it is removed when saving/formatting:
This:
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
workflow {
Channel.of("a", "b", "c", "d")
| view
}
// process something {
// input:
// val a
// output:
// path "b.txt"
// script:
// """
// touch b.txt
// """
// }
Becomes:
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
workflow {
Channel.of("a", "b", "c", "d")
| view
}