-
Notifications
You must be signed in to change notification settings - Fork 72
Doc change for setFile (existsSync is necessary) #293
Conversation
existsSync method is necessary for the object passed into setFile. Should be reflected in comment atom/issues/258
src/text-buffer.coffee
Outdated
@@ -576,6 +576,7 @@ class TextBuffer | |||
# * `getPath` A {Function} that returns the {String} path to the file. | |||
# * `createReadStream` A {Function} that returns a `Readable` stream | |||
# that can be used to load the file's content. | |||
# * `existsSync` A {function} that returns the {Boolean}, true if the file exists, false otherwise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be moved below createWriteStream
so it doesn't split the two create___Stream
properties up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch, thanks! I've reordered them, such that they write streams are together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, missed this earlier!
src/text-buffer.coffee
Outdated
@@ -578,6 +578,7 @@ class TextBuffer | |||
# that can be used to load the file's content. | |||
# * `createWriteStream` A {Function} that returns a `Writable` stream | |||
# that can be used to save content to the file. | |||
# * `existsSync` A {function} that returns the {Boolean}, true if the file exists, false otherwise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, caught these on a last check:
{function}
should be{Function}
- Add a
.
on the end returns the {Boolean}
->returns a {Boolean}
Great catches again, thanks! |
existsSync method is necessary for the object passed into setFile. Should be reflected in comment /issues/258