Emit deprecation warnings for decorations of type ‘gutter’

This commit is contained in:
Nathan Sobo
2015-01-14 19:16:57 -07:00
parent 8c574bfd30
commit 542ed631e8

View File

@@ -1311,6 +1311,9 @@ class TextEditor extends Model
#
# Returns a {Decoration} object
decorateMarker: (marker, decorationParams) ->
if decorationParams.type is 'gutter'
deprecate("Decorations of `type: 'gutter'` have been renamed to `type: 'line-number'`.")
decorationParams.type = 'line-number'
@displayBuffer.decorateMarker(marker, decorationParams)
# Public: Get all the decorations within a screen row range.