         assetDirectory = @_getAssetDirectoryForEditor(editor)
         if not assetDirectory?
             assetDirectory = @_initAssetDirectory(editor)
+            @_initEditor(editor, editor.getPath())
 
         dialog = new CodeAnnotationNameDialog()
         dialog.attach().onSubmit (name) =>

        editor.setCursorBufferPosition([point.row, line.length - 1])

        editorData = @_getEditorData(editor)

        line = editor.lineTextForBufferRow(point.row)
        # correct range to end of line

            Utils.createFile([assetDirectoryPath, CodeAnnotations.ASSET_NAMES_FILE], "{}")
            @assetDirectories.push(assetDirectory)
            @assetManagers[assetDirectoryPath] = new AssetManager(assetDirectoryPath)
        return assetDirectory

    # get the name of the codeAnnotation at the given point
