The JS/TS language service immediately crashed 5 times. The service will not be restarted vue3代码提示失效

The JS/TS language service immediately crashed 5 times. The service will not be restarted. This may be caused by a plugin contributed by one of these extensions: styled-components.vscode-styled-components, VisualStudioExptTeam.vscodeintellicode, VisualStudioExptTeam.vscodeintellicode, Vue.vscode-typescript-vue-plugin

或者vue项目代码没有提示
解决方案:

  1. 在当前项目的工作空间下,用 Ctrl + Shift + P (macOS:Cmd + Shift + P) 唤起命令面板。
    The JS/TS language service immediately crashed 5 times. The service will not be restarted vue3代码提示失效_第1张图片

  2. 输入 built,然后选择“Extensions:Show Built-in Extensions”。
    在插件搜索框内输入 typescript (不要删除 @builtin 前缀)。
    The JS/TS language service immediately crashed 5 times. The service will not be restarted vue3代码提示失效_第2张图片

  3. 点击“TypeScript and JavaScript Language Features”右下角的小齿轮,然后选择“Disable (Workspace)”。
    The JS/TS language service immediately crashed 5 times. The service will not be restarted vue3代码提示失效_第3张图片

  4. 重新加载工作空间。Takeover 模式将会在你打开一个 Vue 或者 TS 文件时自动启用。

你可能感兴趣的:(javascript,前端,vue.js)