mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Recognize the RHS of assignments as the JSDoc target expression
Fixes #6552
This commit is contained in:
21
tests/cases/fourslash/getJavaScriptCompletions18.ts
Normal file
21
tests/cases/fourslash/getJavaScriptCompletions18.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @allowNonTsExtensions: true
|
||||
// @Filename: file.js
|
||||
//// /**
|
||||
//// * @param {number} a
|
||||
//// * @param {string} b
|
||||
//// */
|
||||
//// exports.foo = function(a, b) {
|
||||
//// a/*a*/;
|
||||
//// b/*b*/
|
||||
//// };
|
||||
|
||||
goTo.marker('a');
|
||||
edit.insert('.');
|
||||
verify.completionListContains('toFixed', undefined, undefined, 'method');
|
||||
|
||||
|
||||
goTo.marker('b');
|
||||
edit.insert('.');
|
||||
verify.completionListContains('substr', undefined, undefined, 'method');
|
||||
Reference in New Issue
Block a user