mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
[Gutter] Add back includeDeprecatedAPIs gate on gutter type decorations
This commit is contained in:
@@ -1308,7 +1308,7 @@ class TextEditor extends Model
|
||||
#
|
||||
# Returns a {Decoration} object
|
||||
decorateMarker: (marker, decorationParams) ->
|
||||
if decorationParams.type is 'gutter' and not decorationParams.gutterName
|
||||
if includeDeprecatedAPIs and decorationParams.type is 'gutter' and not decorationParams.gutterName
|
||||
deprecate("Decorations of `type: 'gutter'` have been renamed to `type: 'line-number'`.")
|
||||
decorationParams.type = 'line-number'
|
||||
@displayBuffer.decorateMarker(marker, decorationParams)
|
||||
|
||||
Reference in New Issue
Block a user