mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Add 'editor:save-debug-snapshot' command. Closes #191.
This saves the state of the rendered lines, the display buffer, the tokenized buffer, and the buffer to a file. If a problem arises with rendering, hopefully we can use it to diagnose in which layer things went awry.
This commit is contained in:
@@ -820,5 +820,11 @@ class EditSession
|
||||
@displayBuffer.tokenizedBuffer.resetScreenLines()
|
||||
grammarChanged
|
||||
|
||||
getDebugSnapshot: ->
|
||||
[
|
||||
@displayBuffer.getDebugSnapshot()
|
||||
@displayBuffer.tokenizedBuffer.getDebugSnapshot()
|
||||
].join('\n\n')
|
||||
|
||||
_.extend(EditSession.prototype, EventEmitter)
|
||||
_.extend(EditSession.prototype, Subscriber)
|
||||
|
||||
Reference in New Issue
Block a user