mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Merge pull request #4283 from zhengbli/JsDocIntellisense2
Add Intellisense to JsDoc
This commit is contained in:
62
tests/cases/fourslash/completionInJsDoc.ts
Normal file
62
tests/cases/fourslash/completionInJsDoc.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
///<reference path="fourslash.ts" />
|
||||
|
||||
// @allowNonTsExtensions: true
|
||||
// @Filename: Foo.js
|
||||
/////** @/*1*/ */
|
||||
////var v1;
|
||||
////
|
||||
/////** @p/*2*/ */
|
||||
////var v2;
|
||||
////
|
||||
/////** @param /*3*/ */
|
||||
////var v3;
|
||||
////
|
||||
/////** @param { n/*4*/ } bar */
|
||||
////var v4;
|
||||
////
|
||||
/////** @type { n/*5*/ } */
|
||||
////var v5;
|
||||
////
|
||||
////// @/*6*/
|
||||
////var v6;
|
||||
////
|
||||
////// @pa/*7*/
|
||||
////var v7;
|
||||
////
|
||||
/////** @param { n/*8*/ } */
|
||||
////var v8;
|
||||
////
|
||||
/////** @return { n/*9*/ } */
|
||||
////var v9;
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListContains("constructor");
|
||||
verify.completionListContains("param");
|
||||
verify.completionListContains("type");
|
||||
|
||||
goTo.marker('2');
|
||||
verify.completionListContains("constructor");
|
||||
verify.completionListContains("param");
|
||||
verify.completionListContains("type");
|
||||
|
||||
goTo.marker('3');
|
||||
verify.completionListIsEmpty();
|
||||
|
||||
goTo.marker('4');
|
||||
verify.completionListContains('number');
|
||||
|
||||
goTo.marker('5');
|
||||
verify.completionListContains('number');
|
||||
|
||||
goTo.marker('6');
|
||||
verify.completionListIsEmpty();
|
||||
|
||||
goTo.marker('7');
|
||||
verify.completionListIsEmpty();
|
||||
|
||||
goTo.marker('8');
|
||||
verify.completionListContains('number');
|
||||
|
||||
goTo.marker('9');
|
||||
verify.completionListContains('number');
|
||||
|
||||
Reference in New Issue
Block a user