Proposal: simplify auto import descriptions (#47631)

* Simplify import fix descriptions

* Update tests

* Fix new test
This commit is contained in:
Andrew Branch
2022-01-27 10:21:08 -08:00
committed by GitHub
parent 208cb2d57c
commit e9092f3723
68 changed files with 113 additions and 108 deletions
@@ -85,7 +85,7 @@ namespace ts.projectSystem {
{
codeActions: [
{
description: `Import 'foo' from module "./a"`,
description: `Add import from "./a"`,
changes: [
{
fileName: "/b.ts",
@@ -118,7 +118,7 @@ namespace ts.projectSystem {
{
codeActions: [
{
description: `Import 'foo' from module "./a"`,
description: `Add import from "./a"`,
changes: [
{
fileName: "/b.ts",
@@ -33,7 +33,7 @@ namespace ts.projectSystem {
});
assert.deepEqual<readonly protocol.CodeFixAction[] | undefined>(response, [
{
description: `Import 'foo' from module "foo"`,
description: `Add import from "foo"`,
fixName: "import",
changes: [{
fileName: user.path,