File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 88 projectRootDirectory ,
99 getInstallationCommand ,
1010 runCommand ,
11+ getNuxtVersion ,
1112} from "../utils" ;
1213import { updateDevtoolsStatusBar } from "../statusBar" ;
1314
@@ -144,8 +145,16 @@ async function nuxtConfigWatcher() {
144145
145146async function nuxtDevToolsHandler ( ) {
146147 const isInstalled = await isDevtoolsInstalled ( ) ;
148+ let isDevtoolsNative = false ;
147149
148- if ( ! isInstalled ) {
150+ let nuxtVersion = getNuxtVersion ( ) ;
151+ if ( typeof nuxtVersion === 'string' ) {
152+ isDevtoolsNative = nuxtVersion . startsWith ( '3.8' ) ? true : false ;
153+ console . log ( 'isDevtoolsNative' , isDevtoolsNative ) ;
154+
155+ }
156+
157+ if ( ! isInstalled && ! isDevtoolsNative ) {
149158 await installDevtools ( ) ;
150159 updateDevtoolsStatusBar ( {
151160 command : "nuxtr.directUpgradeNuxt" ,
You can’t perform that action at this time.
0 commit comments