文件保存了吗?
保存了。重启lsp server lsp workspace restart才便正常。 我文件新加的函数 变量都ok,好像是就export enum EventName这种的有问题
lsp workspace restart
export enum EventName