mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Proposal: simplify auto import descriptions (#47631)
* Simplify import fix descriptions * Update tests * Fix new test
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user