Omit untitled editors (at least for now)

This commit is contained in:
Ash Wilson
2019-04-16 15:38:03 -04:00
parent 8e15d9656a
commit 08a29df12f

View File

@@ -331,7 +331,7 @@ class LaunchScenario {
getOpenEditors (window) {
return this.evalInWebContents(window.browserWindow.webContents, reply => {
reply(atom.workspace.getTextEditors().map(editor => editor.getPath()))
reply(atom.workspace.getTextEditors().map(editor => editor.getPath()).filter(Boolean))
})
}