This repository was archived by the owner on Sep 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +104
-2
lines changed Expand file tree Collapse file tree 2 files changed +104
-2
lines changed Original file line number Diff line number Diff line change 7575 " ng-false-value" ,
7676 " ng-value" ,
7777 " ng-trim"
78+ ],
79+ "javascript" : [
80+ " angular" ,
81+ " bind" ,
82+ " bootstrap" ,
83+ " copy" ,
84+ " element" ,
85+ " equals" ,
86+ " extend" ,
87+ " forEach" ,
88+ " fromJson" ,
89+ " identity" ,
90+ " injector" ,
91+ " isArray" ,
92+ " isDate" ,
93+ " isDefined" ,
94+ " isElement" ,
95+ " isFunction" ,
96+ " isNumber" ,
97+ " isObject" ,
98+ " isString" ,
99+ " isUndefined" ,
100+ " lowercase" ,
101+ " module" ,
102+ " noop" ,
103+ " reloadWithDebugInfo" ,
104+ " toJson" ,
105+ " uppercase" ,
106+
107+ " $anchorScroll" ,
108+ " $animate" ,
109+ " $cacheFactory" ,
110+ " $compile" ,
111+ " $controller" ,
112+ " $document" ,
113+ " $exceptionHandler" ,
114+ " $filter" ,
115+ " $http" ,
116+ " $httpBackend" ,
117+ " $interpolate" ,
118+ " $interval" ,
119+ " $locale" ,
120+ " $location" ,
121+ " $log" ,
122+ " $parse" ,
123+ " $q" ,
124+ " $rootElement" ,
125+ " $rootScope" ,
126+ " $sce" ,
127+ " $sceDelegate" ,
128+ " $templateCache" ,
129+ " $templateRequest" ,
130+ " $timeout" ,
131+ " $window" ,
132+ " $animateProvider" ,
133+ " $compileProvider" ,
134+ " $controllerProvider" ,
135+ " $filterProvider" ,
136+ " $httpProvider" ,
137+ " $interpolateProvider" ,
138+ " $locationProvider" ,
139+ " $logProvider" ,
140+ " $parseProvider" ,
141+ " $rootScopeProvider" ,
142+ " $sceDelegateProvider" ,
143+ " $sceProvider" ,
144+ " $injector" ,
145+ " $provide" ,
146+ " $ariaProvider" ,
147+ " $aria" ,
148+ " $cookieStore" ,
149+ " $cookies" ,
150+
151+ " mock" ,
152+ " $exceptionHandlerProvider" ,
153+ " TzDate" ,
154+ " dump" ,
155+ " inject" ,
156+ " $resource" ,
157+ " $routeProvider" ,
158+ " $route" ,
159+ " $routeParams" ,
160+ " $sanitize" ,
161+ " $swipe" ,
162+ " controller" ,
163+ " $scope" ,
164+ " service" ,
165+ " factory" ,
166+ " provider" ,
167+ " ngResource" ,
168+ " defer" ,
169+ " config" ,
170+ " when" ,
171+ " otherwise" ,
172+ " directive" ,
173+ " run" ,
174+ " filter"
78175 ]
79176}
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ module.exports =
1212
1313 getSuggestions : (request ) ->
1414 if @ isJavaScript (request)
15- console .log (' is js' );
16- []
15+ @ getJavascriptCompletions (request)
1716 else if @ isHtml (request)
1817 if @ isAttributeStart (request)
1918 @ getAttributeNameCompletions (request)
@@ -84,6 +83,12 @@ module.exports =
8483 completions .push ({ text : tag, type : ' tag' })
8584 completions
8685
86+ getJavascriptCompletions : ({ prefix, editor, bufferPosition }) ->
87+ completions = []
88+ for idx, tag of @completions .javascript when firstCharsEqual (tag, prefix)
89+ completions .push ({ text : tag, type : ' angularjs' })
90+ completions
91+
8792 getPreviousAttribute : (editor , bufferPosition ) ->
8893 # Remove everything until the opening quote (if we're in a string)
8994 quoteIndex = bufferPosition .column - 1 # Don't start at the end of the line
You can’t perform that action at this time.
0 commit comments