IDE Auto-completion Provides Irrelevant Suggestions in vite.config.ts

Describe the Bug

When editing the vite.config.ts file, the IDE’s code auto-completion feature sometimes incorrectly displays suggestions completely unrelated to
the current context (e.g., WeChat Mini Program events like wx-on…), instead of providing relevant Vite configuration options. However, in other instances, it
correctly offers appropriate suggestions (e.g., optimizeDeps).

Steps to Reproduce

  1. open cursor
  2. open vscode

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

版本: 1.2.2
提交: 1.99.3
日期: faa03b17cce93e8a80b7d62d57f5eda6bb6ab9f0
Electron: 2025-07-07T06:08:52.104Z
ElectronBuildId: 34.5.1
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.0
OS: 13.2.152.41-electron.0

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.