* Add quickfix and refactoring to install @types packages * Move `validatePackageName` to `jsTyping.ts` * Remove combinePaths overloads * Respond to code review * Update api baselines * Use native PromiseConstructor * Return false instead of undefined * Remove getProjectRootPath * Update api
26 lines
549 B
TypeScript
26 lines
549 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////import abs = require("/*a*/abs/subModule/*b*/");
|
|
|
|
test.setTypesRegistry({
|
|
"abs": undefined,
|
|
});
|
|
|
|
goTo.select("a", "b");
|
|
verify.refactor({
|
|
name: "Install missing types package",
|
|
actionName: "install",
|
|
refactors: [
|
|
{
|
|
name: "Install missing types package",
|
|
description: "Install missing types package",
|
|
actions: [
|
|
{
|
|
description: "Install '@types/abs'",
|
|
name: "install",
|
|
}
|
|
]
|
|
}
|
|
],
|
|
});
|