Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343960

Summary: [Formatter] FormattingConfigBasedStream produces only hidden tokens
Product: [Modeling] TMF Reporter: Lieven Lemiengre <lieven.lemiengre>
Component: Xtext BacklogAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: moritz.eysholdt
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Lieven Lemiengre CLA 2011-04-27 09:58:57 EDT
Build Identifier:  I20110310-1119

FormattingConfigBasedStream should keep the 'hidden' property of tokens intact.

In FormattingConfigBasedStream.addLineEntry at line 367:

LineEntry e = createLineEntry(grammarElement, value, true, locators, preservedWS, indentationLevel, hiddenTokenDef);

should be
 
LineEntry e = createLineEntry(grammarElement, value, isHidden, locators, preservedWS, indentationLevel, hiddenTokenDef);

Reproducible: Always

Steps to Reproduce:
-
Comment 1 Moritz Eysholdt CLA 2016-07-21 05:15:36 EDT
won't fix because it affects the old formatter infrastructure