mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Add an 'application:open-license' command
It just opens the LICENSE file in a buffer
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{remove, last} = require 'underscore-plus'
|
||||
{join} = require 'path'
|
||||
{Model} = require 'theorist'
|
||||
Q = require 'q'
|
||||
Serializable = require 'serializable'
|
||||
@@ -88,6 +89,9 @@ class Workspace extends Model
|
||||
|
||||
@openUriInPane(uri, pane, options)
|
||||
|
||||
openLicense: ->
|
||||
@open(join(atom.getLoadSettings().resourcePath, 'LICENSE'))
|
||||
|
||||
# Only used in specs
|
||||
openSync: (uri='', options={}) ->
|
||||
{initialLine} = options
|
||||
|
||||
Reference in New Issue
Block a user