unplugin-auto-import icon indicating copy to clipboard operation
unplugin-auto-import copied to clipboard

don't collect empty export like export { }

Open pawover opened this issue 1 year ago • 0 comments

当用户开启 vscode setting source.organizeImports 时,export {} 会被格式化为 export { },当数量超过2个时,控制台会收到警告 WARN Duplicated imports "", the one from "xxx/xxx.ts" has been ignored and "xxx/xxx.ts" is used

.ts 文件中使用 export {} 是有意义的,配合 declare global 做到全局类型声明定义

我希望在 vscode 修复这个问题之前忽略收集 export { } ,现有配置选项中该如何配置?

pawover avatar May 30 '24 02:05 pawover