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
- open cursor
- 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

