2015-10-15 02:36:03 +02:00
|
|
|
///<reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// Assignments to 'exports.p' stop global variables from being visible in other files
|
|
|
|
|
2015-11-13 22:44:57 +01:00
|
|
|
// @allowJs: true
|
2015-10-15 02:36:03 +02:00
|
|
|
// @Filename: myMod.js
|
|
|
|
//// if (true) {
|
|
|
|
//// exports.b = true;
|
|
|
|
//// } else {
|
|
|
|
//// exports.n = 3;
|
|
|
|
//// }
|
|
|
|
//// function fn() {
|
|
|
|
//// exports.s = 'foo';
|
|
|
|
//// }
|
|
|
|
//// var invisible = true;
|
|
|
|
|
|
|
|
// @Filename: isGlobal.js
|
|
|
|
//// var y = 10;
|
|
|
|
|
|
|
|
// @Filename: consumer.js
|
|
|
|
//// var x = require('myMod');
|
|
|
|
//// /**/;
|
|
|
|
|
2019-05-16 23:46:10 +02:00
|
|
|
verify.completions({
|
|
|
|
marker: "",
|
|
|
|
includes: { name: "y", sortText: completion.SortText.GlobalsOrKeywords },
|
|
|
|
excludes: "invisible"
|
|
|
|
});
|