Skip to content

Issue folding functions (js/ts) that contain comments that aren't properly indented #874

@p-bakker

Description

@p-bakker

If you have a function like below in a .js/.ts file and try to collapse the function, the collapsed range ends at the start of the commented out code:


function test() {
	someCode()
	
//	someCommentedCode()
	
	someOtherCode()
}

image
image

filing the issue here, because I'm noticing it in WWD and I'm unsure where this behavior is actually defined (WWD, TM4E, LSP4E, the JavaScript/TypeScript LSP, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions