Skip to content
This repository was archived by the owner on Apr 10, 2021. It is now read-only.
This repository was archived by the owner on Apr 10, 2021. It is now read-only.

Method writeWithEditorKit is a performance problem #109

Open
@Chris2011

Description

@Chris2011

One of the biggest problems, that I figured out, is that when you save your changes, it will run very often the writeWithEditorKit method or the runnables inside. This is a performance problem I think, because first you feel and see it. You see the spinning wheel after you hit save and you feel changed in the editor window. So I only tested it in my dev enviroment with no plugins, only with this plugin but It could be a big problem in the live enviroment.

Method will be called to often.
Method will be called to often.
Method will be called to often.
Method will be called to often.
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for {0}] Applying rules
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Primary File
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Path
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Apply rules to file: C:/Projekte/myProject/tslint.json (MIME type: text/x-json)
INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: C:\Projekte\myProject\.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: tab_width
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: Using line ending: LF
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Mapped rules for: C:/Projekte/myProject/tslint.json
1. charset: UTF-8
2. end_of_line: LF
3. indent_size: 2
4. indent_style: space
5. insert_final_newline: true
6. tab_width: 2
7. trim_trailing_whitespace: true
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "charset": UTF-8 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Current charset: ISO-8859-1
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Changing charset from "ISO-8859-1" to "UTF-8"
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "end_of_line": LF (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: 4
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Changing value from "4" to "2"
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_style": space (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "insert_final_newline": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ Added final new line
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Caret offset: 0
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ No whitespace trimmed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush file changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@326d3b64
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=8, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for {0}] Applying rules
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Primary File
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Path
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Apply rules to file: C:/Projekte/myProject/tslint.json (MIME type: text/x-json)
INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: C:\Projekte\myProject\.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: tab_width
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: Using line ending: LF
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Mapped rules for: C:/Projekte/myProject/tslint.json
1. charset: UTF-8
2. end_of_line: LF
3. indent_size: 2
4. indent_style: space
5. insert_final_newline: true
6. tab_width: 2
7. trim_trailing_whitespace: true
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "charset": UTF-8 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Current charset: ISO-8859-1
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Changing charset from "ISO-8859-1" to "UTF-8"
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "end_of_line": LF (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_style": space (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "insert_final_newline": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 2.660
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Caret offset: 1
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ No whitespace trimmed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@20d9a11a
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=8, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
WARNING [org.netbeans.modules.parsing.impl.TaskProcessor]: ParserManager.parse called in AWT event thread by: org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:95)
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@1464c88b
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=8, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Moving caret position from 0 to: 2.659 / 2.660
Method will be called to often.
Method will be called to often.
Method will be called to often.
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@57290db1
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=14, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for {0}] Applying rules
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Primary File
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Path
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Apply rules to file: C:/Projekte/myProject/tslint.json (MIME type: text/x-json)
INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: C:\Projekte\myProject\.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: tab_width
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: Using line ending: LF
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Mapped rules for: C:/Projekte/myProject/tslint.json
1. charset: UTF-8
2. end_of_line: LF
3. indent_size: 2
4. indent_style: space
5. insert_final_newline: true
6. tab_width: 2
7. trim_trailing_whitespace: true
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "charset": UTF-8 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Current charset: UTF-8
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "end_of_line": LF (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_style": space (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "insert_final_newline": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 2.660
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Caret offset: 1
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ No whitespace trimmed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@5316838c
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=14, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@1614078a
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=14, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Moving caret position from 0 to: 2.659 / 2.660
Method will be called to often.
Method will be called to often.
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@641b1bb7
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for {0}] Applying rules
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Primary File
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Getting Path
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Apply rules to file: C:/Projekte/myProject/tslint.json (MIME type: text/x-json)
INFO [org.editorconfig.core.EditorConfig]: Used EditorConfig: C:\Projekte\myProject\.editorconfig
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: charset
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_style
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: indent_size
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: end_of_line
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: insert_final_newline
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: trim_trailing_whitespace
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: tab_width
INFO [com.welovecoding.nbeditorconfig.mapper.EditorConfigPropertyMapper]: Using line ending: LF
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Mapped rules for: C:/Projekte/myProject/tslint.json
1. charset: UTF-8
2. end_of_line: LF
3. indent_size: 2
4. indent_style: space
5. insert_final_newline: true
6. tab_width: 2
7. trim_trailing_whitespace: true
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "charset": UTF-8 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ Current charset: UTF-8
INFO [com.welovecoding.nbeditorconfig.processor.operation.tobedone.CharsetOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "end_of_line": LF (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.LineEndingOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_size": 2 (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: 2
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "indent_style": space (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ Current value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ New value: true
INFO [com.welovecoding.nbeditorconfig.processor.operation.CodeStyleOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "insert_final_newline": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.FinalNewLineOperation]: ¬ No change needed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: "trim_trailing_whitespace": true (C:/Projekte/myProject/tslint.json)
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Content length until caret: 2.660
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Trimmed content length: 2.659
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ Caret offset: 1
INFO [com.welovecoding.nbeditorconfig.processor.operation.TrimTrailingWhiteSpaceOperation]: ¬ No whitespace trimmed
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@6cc21275
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Flush style changes for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.processor.EditorConfigProcessor]: Update changes in Editor window for: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "is": java.io.ByteArrayInputStream@3b6166f3
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Write to "document": org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] File content changed: C:/Projekte/myProject/tslint.json
INFO [com.welovecoding.nbeditorconfig.listener.FileChangeListener]: [EC for C:/Projekte/myProject/.editorconfig] Rules will not be applied to: C:/Projekte/myProject/tslint.json - Change triggered by EditorConfig plugin
INFO [com.welovecoding.nbeditorconfig.io.writer.StyledDocumentWriter]: Moving caret position from 0 to: 2.659 / 2.660
WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.csl.core.GsfDocument.removePropertyChangeListener from org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.csl.core.GsfDocument.removePropertyChangeListener from org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]
WARNING [org.openide.util.WeakListenerImpl]: Can't remove java.beans.PropertyChangeListener using method org.netbeans.modules.csl.core.GsfDocument.removePropertyChangeListener from org.netbeans.modules.csl.core.GsfDocument@265add80, mimeType='text/x-json', kitClass=null, length=2660, version=20, file=org.netbeans.modules.csl.core.GsfDataObject@24835d22[C:\Projekte\myProject\tslint.json@11dd7f09:49308647]

So this method should be refactored. I added a sout, that you can see how often it will called.

Cheers

Chris

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions