mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-13 06:20:23 -06:00
FIx minor stuffs
This commit is contained in:
parent
34b68095d2
commit
da51f39695
@ -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();
|
||||
Loading…
x
Reference in New Issue
Block a user