Add deprecation warnings

This commit is contained in:
probablycorey
2014-04-01 16:59:16 -07:00
parent afbf011103
commit 56222a072a
8 changed files with 46 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
{deprecate} = require 'grim'
{remove, last} = require 'underscore-plus'
{join} = require 'path'
{Model} = require 'theorist'
@@ -114,6 +115,8 @@ class Workspace extends Model
# :activatePane - A {Boolean} indicating whether to call {Pane::activate} on
# the containing pane. Defaults to `true`.
openSync: (uri='', options={}) ->
deprecate("Don't use the `changeFocus` option") if options.changeFocus?
{initialLine} = options
# TODO: Remove deprecated changeFocus option
activatePane = options.activatePane ? options.changeFocus ? true