mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Emit deprecation warnings for decorations of type ‘gutter’
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user