92
92
//// */
93
93
////
94
94
95
- // also, can support the inline jsdoc tags
96
- /////**
97
- //// * link to {/*70*/
98
- //// */
99
- ////
100
- /////**
101
- //// * link to {@/*71*/
102
- //// */
103
- ////
104
-
105
95
verify . completions ( { marker : "" , includes : { name : "@property" , text : "@property" , kind : "keyword" } } ) ;
106
96
107
97
@@ -113,72 +103,17 @@ test.markerNames().forEach(marker => {
113
103
let completionOpt : FourSlashInterface . CompletionsOptions ;
114
104
const n = + marker ;
115
105
switch ( n ) {
116
- /* https://coderwall.com/p/zbc2zw/the-comment-toggle-trick
117
-
118
- // - - - - - -
119
- // before fix
120
- // - - - - - -
121
-
122
106
// jsdoc tags will be listed when there is more than one whitespace after "*"
123
107
case 10 : case 11 :
124
108
// Also, if there are two or more blanks at the beginning of the line
125
109
case 20 : case 21 :
126
-
127
- // 5x - jsdoc tag completions should not occur
128
- // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
129
- // jsdoc tags will be listed but this does not the expected behavior
130
- // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
131
- case 50: case 51: case 52:
132
- completionOpt = { marker, includes: ["@abstract", "@access"] };
133
- break;
134
-
135
- // 3x - jsdoc tag names will be listed
136
- case 30: case 31: case 32: case 33: case 34: case 35: case 36:
137
-
138
- // 4x - jsdoc tag name completions should not occur
139
- // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
140
- // jsdoc tag names will be listed but this does not the expected behavior
141
- // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
142
- case 40: case 41: case 42: case 43: case 44: case 45: case 46:
143
-
144
- // does not the expected behavior... because ts.JsDoc@jsDocTagNames is missing inline jsdoc tag name
145
- // In other words, inline jsdoc tag is interpreted as not intending to support
146
- case 71:
147
- completionOpt = {
148
- marker,
149
- triggerCharacter: "@",
150
- includes: ["package", "param"]
151
- };
152
- break;
153
- /*/
154
-
155
- // - - - - - -
156
- // after fix
157
- // - - - - - -
158
-
159
- // jsdoc tags will be listed when there is more than one whitespace after "*"
160
- case 10 : case 11 :
161
- // Also, if there are two or more blanks at the beginning of the line
162
- case 20 : case 21 :
163
-
164
- // // also, can support the inline jsdoc tags
165
- // case 70:
166
110
completionOpt = { marker, includes : [
167
111
"@abstract" , "@access" ,
168
112
] } ;
169
113
break ;
170
114
171
115
// 3x - jsdoc tag names will be listed
172
116
case 30 : case 31 : case 32 : case 33 : case 34 : case 35 : case 36 :
173
-
174
- // // 4x - jsdoc tag name completions should not occur
175
- // // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
176
- // // this behavior does not by getCompletionData.insideComment.hasDocComment clause
177
- // // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
178
- // case 40: case 41: case 42:
179
-
180
- // // also, can support the inline jsdoc tags
181
- // case 71:
182
117
completionOpt = {
183
118
marker,
184
119
triggerCharacter : "@" ,
@@ -205,19 +140,12 @@ test.markerNames().forEach(marker => {
205
140
case 50 : case 51 : case 52 :
206
141
completionOpt = { marker, exact : [ ] } ;
207
142
break ;
208
- //*/
209
143
210
144
default :
211
145
break ;
212
146
}
213
147
if ( completionOpt ) {
214
- // verify.completions(completionOpt);
215
- try {
216
- verify . completions ( completionOpt ) ;
217
- } catch ( e ) {
218
- console . log ( e . message ) ;
219
- console . log ( "please switch the code of src/services/completions.ts#getCompletionData" ) ;
220
- }
148
+ verify . completions ( completionOpt ) ;
221
149
}
222
150
}
223
151
} ) ;
0 commit comments