mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Merge pull request #6850 from RyanCavanaugh/fix6654
Always show file tokens in JS completion lists
This commit is contained in:
15
tests/cases/fourslash/getJavaScriptGlobalCompletions1.ts
Normal file
15
tests/cases/fourslash/getJavaScriptGlobalCompletions1.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @allowNonTsExtensions: true
|
||||
// @Filename: Foo.js
|
||||
//// function f() {
|
||||
//// // helloWorld leaks from here into the global space?
|
||||
//// if (helloWorld) {
|
||||
//// return 3;
|
||||
//// }
|
||||
//// return 5;
|
||||
//// }
|
||||
////
|
||||
//// hello/**/
|
||||
|
||||
verify.completionListContains('helloWorld');
|
||||
Reference in New Issue
Block a user