Skip to content

Autocompletion is working in TS 4.7 to 4.9 but broken/gone in TS 5 #53475

Closed
@jgoux

Description

@jgoux

Bug Report

🔎 Search Terms

autocompletion

🕗 Version & Regression Information

  • This changed between versions ^4.7.0 and ^5
  • I was unable to test this on prior versions because some type features such as string literal manipulation are not available before 4.7

⏯ Playground Link

Playground link with relevant code

💻 Code

Please go to the end of the code and try the defineConfig function:

defineConfig({
  exclude: {
    data: ["<cursor here, ctrl+space>"],
    structure: {
      schemas: ["secret", "<cursor here, ctrl+space>"],
      tables: ["<cursor here, ctrl+space>"]
    }
  }
})

🙁 Actual behavior

Between TS 4.7 and 4.9, we have autocompletion available for all array values under the exclude key
At TS 5 and above (I tried nightly as well), the autocompletion is gone

🙂 Expected behavior

The autocompletion should work the same as with TS 4.7 and 4.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions