|
@@ -2,8 +2,6 @@ define [
|
|
|
"./top_hundred_snippets"
|
|
"./top_hundred_snippets"
|
|
|
], (topHundred) ->
|
|
], (topHundred) ->
|
|
|
|
|
|
|
|
- commandNames = (snippet.caption.match(/\w+/)[0] for snippet in topHundred)
|
|
|
|
|
-
|
|
|
|
|
class Parser
|
|
class Parser
|
|
|
constructor: (@doc, @prefix) ->
|
|
constructor: (@doc, @prefix) ->
|
|
|
|
|
|
|
@@ -96,6 +94,10 @@ define [
|
|
|
constructor: (@metadataManager) ->
|
|
constructor: (@metadataManager) ->
|
|
|
|
|
|
|
|
getCompletions: (editor, session, pos, prefix, callback) ->
|
|
getCompletions: (editor, session, pos, prefix, callback) ->
|
|
|
|
|
+ console.log '>> this is running!'
|
|
|
|
|
+ commandNames = (
|
|
|
|
|
+ snippet.caption.match(/\w+/)[0] for snippet in topHundred
|
|
|
|
|
+ )
|
|
|
packages = @metadataManager.getAllPackages()
|
|
packages = @metadataManager.getAllPackages()
|
|
|
packageCommands = []
|
|
packageCommands = []
|
|
|
for pkg, snippets of packages
|
|
for pkg, snippets of packages
|