Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

writeSync does not trigger onDidChange #110

Closed

Description

@winstliu

Test code:

# init.coffee
{File} =  require 'atom'
file = new File 'some file'
file.onDidChange -> console.log 'CHANGED'

atom.commands.add 'atom-text-editor', 'custom:test-write-sync': (event) -> file.writeSync 'Hey!'

Then open up the file you chose, modify it, and save it. CHANGED should appear in the console. But if you trigger the custom:test-write-sync command, then CHANGED doesn't appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions