mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
📝 better docs for workspace.addOpener
This commit is contained in:
parent
03257b17e2
commit
7b16e40fa8
@ -589,10 +589,11 @@ class Workspace extends Model
|
||||
|
||||
# Public: Register an opener for a uri.
|
||||
#
|
||||
# Atom loops through opener functions until one returns a value for a given uri.
|
||||
# When a URI is opened via {Workspace::open}, Atom loops through its registered
|
||||
# opener functions until one returns a value for the given uri.
|
||||
# Openers are expected to return an object that inherits from HTMLElement or
|
||||
# a model which has an associated view in the {ViewRegistry}.
|
||||
# A {TextEditor} will be used if no openers return a value.
|
||||
# A {TextEditor} will be used if no opener returns a value.
|
||||
#
|
||||
# ## Examples
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user