You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vscode/src/features/doctor.ts
+7-174Lines changed: 7 additions & 174 deletions
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,6 @@ export async function activate(client: BaseLanguageClient) {
72
72
}
73
73
74
74
content+='---\n\n'
75
-
content+=`> Have any questions about the report message? You can see how it is composed by inspecting the [source code](https://github.com/vuejs/language-tools/blob/master/extensions/vscode/src/features/doctor.ts).\n\n`
76
-
77
75
returncontent.trim()
78
76
},
79
77
}),
@@ -109,127 +107,22 @@ export async function activate(client: BaseLanguageClient) {
// check vue version < 2.7 but @vue/runtime-dom missing
133
-
problems.push({
134
-
title: '`@vue/runtime-dom` missing for Vue 2',
135
-
message: [
136
-
"Vue 2 does not have JSX types definitions, so template type checking will not work correctly. You can resolve this problem by installing `@vue/runtime-dom` and adding it to your project's `devDependencies`.",
137
-
'',
138
-
'- vue: '+vueMod.path,
139
-
].join('\n'),
140
-
})
141
-
}elseif(
142
-
vueMod&&
143
-
semver.gte(vueMod.json.version,'2.7.0')&&
144
-
semver.lt(vueMod.json.version,'3.0.0')&&
145
-
domMod
146
-
){
147
-
// check vue version >= 2.7 and < 3 but installed @vue/runtime-dom
148
-
problems.push({
149
-
title: 'Unnecessary `@vue/runtime-dom`',
150
-
message: [
151
-
'Vue 2.7 already includes JSX type definitions. You can remove the `@vue/runtime-dom` dependency from package.json.',
'For `<template lang="pug">`, the `@vue/language-plugin-pug` plugin is required. Install it using `$ npm install -D @vue/language-plugin-pug` and add it to `vueCompilerOptions.plugins` to support TypeScript intellisense in Pug templates.',
'With `"files.associations": { "*.mpx": html }`, language server cannot to recognize Vue files. You can remove `files.associations["*.mpx"]` from `.vscode/settings.json`.',
`Extension >= 2.0 requires TSDK 5.0+. You are currently using TSDK ${tsdk.version}, please upgrade to TSDK.`,
300
-
'If you need to use TSDK 4.x, please downgrade the extension to v1.',
301
-
].join('\n'),
302
-
})
303
-
}
304
-
305
-
if(
306
-
vscode.workspace
307
-
.getConfiguration('mpx')
308
-
.has('server.additionalExtensions')||
309
-
vscode.workspace
310
-
.getConfiguration('mpx')
311
-
.has('server.petiteVue.supportHtmlFile')||
312
-
vscode.workspace
313
-
.getConfiguration('mpx')
314
-
.has('server.vitePress.supportMdFile')
315
-
){
316
-
problems.push({
317
-
title: 'Deprecated configuration',
318
-
message: [
319
-
'`mpx.server.additionalExtensions`, `mpx.server.petiteVue.supportHtmlFile`, and `mpx.server.vitePress.supportMdFile` are deprecated. Please remove them from your settings.',
0 commit comments