mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Implement getPath() in markdown preview view
This allows it to be shown in the tree view when the reveal command is triggered.
This commit is contained in:
@@ -29,6 +29,9 @@ class MarkdownPreviewView extends ScrollView
|
||||
getUri: ->
|
||||
"markdown-preview:#{@buffer.getPath()}"
|
||||
|
||||
getPath: ->
|
||||
@buffer.getPath()
|
||||
|
||||
setErrorHtml: ->
|
||||
@html $$$ ->
|
||||
@h2 'Previewing Markdown Failed'
|
||||
|
||||
Reference in New Issue
Block a user