mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-08 02:46:15 -05:00
FIx minor stuffs
This commit is contained in:
@@ -59,7 +59,7 @@ namespace ts.Completions {
|
||||
}
|
||||
|
||||
// Add keywords if this is not a member completion list
|
||||
if (!isMemberCompletion && !(requestJsDocTag && requestJsDocTagName)) {
|
||||
if (!isMemberCompletion && !requestJsDocTag && !requestJsDocTagName) {
|
||||
addRange(entries, keywordCompletions);
|
||||
}
|
||||
|
||||
@@ -858,7 +858,7 @@ namespace ts.Completions {
|
||||
// * |c|
|
||||
// */
|
||||
const lineStart = getLineStartPositionForPosition(position, sourceFile);
|
||||
requestJsDocTag = !(sourceFile.text.substr(lineStart, position).match(/[^\*|\s|(/\*\*)]/));
|
||||
requestJsDocTag = !(sourceFile.text.substring(lineStart, position).match(/[^\*|\s|(/\*\*)]/));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,22 +35,24 @@
|
||||
//// /**
|
||||
//// * /*11*/
|
||||
//// */
|
||||
|
||||
////
|
||||
//// /**
|
||||
//// /*12*/
|
||||
//// */
|
||||
|
||||
////
|
||||
//// /**
|
||||
//// * /*13*/
|
||||
//// */
|
||||
|
||||
////
|
||||
//// /**
|
||||
//// * some comment /*14*/
|
||||
//// */
|
||||
|
||||
////
|
||||
//// /**
|
||||
//// * @param /*15*/
|
||||
//// */
|
||||
////
|
||||
//// /** @param /*16*/ */
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListContains("constructor");
|
||||
@@ -105,4 +107,7 @@ goTo.marker('14');
|
||||
verify.completionListIsEmpty();
|
||||
|
||||
goTo.marker('15');
|
||||
verify.completionListIsEmpty();
|
||||
|
||||
goTo.marker('16');
|
||||
verify.completionListIsEmpty();
|
||||
Reference in New Issue
Block a user