mirror of
https://github.com/atom/atom.git
synced 2026-02-11 07:05:11 -05:00
💩
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports =
|
||||
editor.on 'snippets:expand', (e) =>
|
||||
editSession = editor.activeEditSession
|
||||
prefix = editSession.getLastCursor().getCurrentWordPrefix()
|
||||
if snippet = @snippetsByExtension[editSession.getFileExtension()][prefix]
|
||||
if snippet = @snippetsByExtension[editSession.getFileExtension()]?[prefix]
|
||||
editSession.transact ->
|
||||
snippetExpansion = new SnippetExpansion(snippet, editSession)
|
||||
editSession.snippetExpansion = snippetExpansion
|
||||
|
||||
Reference in New Issue
Block a user