mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only add explicitly opened files/folders as recent documents
This commit is contained in:
@@ -885,9 +885,9 @@ class AtomEnvironment extends Model
|
||||
else
|
||||
@project.addPath(pathToOpen)
|
||||
|
||||
if fs.isDirectorySync(pathToOpen)
|
||||
@applicationDelegate.addRecentDocument(pathToOpen)
|
||||
else
|
||||
@applicationDelegate.addRecentDocument(pathToOpen)
|
||||
|
||||
unless fs.isDirectorySync(pathToOpen)
|
||||
@workspace?.open(pathToOpen, {initialLine, initialColumn})
|
||||
|
||||
return
|
||||
|
||||
@@ -488,9 +488,6 @@ class Workspace extends Model
|
||||
if initialLine >= 0 or initialColumn >= 0
|
||||
item.setCursorBufferPosition?([initialLine, initialColumn])
|
||||
|
||||
path = item.getPath?()
|
||||
@applicationDelegate.addRecentDocument(path) if path?
|
||||
|
||||
index = pane.getActiveItemIndex()
|
||||
@emitter.emit 'did-open', {uri, pane, item, index}
|
||||
item
|
||||
|
||||
Reference in New Issue
Block a user