@@ -7,7 +7,7 @@ import type { AnyNitroConfig } from './utils/nitro-compat'
77import { existsSync } from 'node:fs'
88import fs from 'node:fs/promises'
99import os from 'node:os'
10- import { NUXT_DEVTOOLS_GROUP_ID } from '@nuxt/devtools-kit'
10+ import { deprecate , NUXT_DEVTOOLS_GROUP_ID } from '@nuxt/devtools-kit'
1111import { addImports , addPlugin , addTemplate , addVitePlugin , extendViteConfig , logger } from '@nuxt/kit'
1212import { colors } from 'consola/utils'
1313import { join } from 'pathe'
@@ -277,19 +277,26 @@ window.__NUXT_DEVTOOLS_TIME_METRIC__.appInit = Date.now()
277277
278278await import ( './integrations/plugin-metrics' ) . then ( ( { setup } ) => setup ( ctx ) )
279279
280- // Data Inspector is always mounted when DevTools is enabled (no module
281- // option): it registers the live `Nuxt Application` source and mounts the
282- // bundled SPA into the Nuxt dock group.
283- await import ( './integrations/data-inspector' ) . then ( ( { setup } ) => setup ( ctx ) )
280+ if ( options . dataInspector !== false )
281+ await import ( './integrations/data-inspector' ) . then ( ( { setup } ) => setup ( ctx ) )
284282
285283if ( options . viteInspect !== false )
286284await import ( './integrations/vite-inspect' ) . then ( ( { setup } ) => setup ( ctx ) )
287285
288286if ( options . componentInspector !== false )
289287await import ( './integrations/vue-tracer' ) . then ( ( { setup } ) => setup ( ctx ) )
290288
289+ if ( options . codeServer ?. enabled === false && options . vscode !== undefined ) {
290+ deprecate ( nuxt , 'NDT_DEP_0008' , {
291+ api : 'devtools.vscode' ,
292+ replacement : 'devtools.codeServer' ,
293+ } )
294+ }
295+
291296const integrations = [
292- import ( './integrations/code-server' ) . then ( ( { setup } ) => setup ( ctx ) ) ,
297+ options . codeServer ?. enabled !== false
298+ ? import ( './integrations/code-server' ) . then ( ( { setup } ) => setup ( ctx ) )
299+ : null ,
293300( options . experimental ?. timeline || options . timeline ?. enabled )
294301 ? import ( './integrations/timeline' ) . then ( ( { setup } ) => setup ( ctx ) )
295302 : null ,
0 commit comments