diff --git a/.eslintignore b/.eslintignore index 095125aecd40..6771603144e1 100644 --- a/.eslintignore +++ b/.eslintignore @@ -9,3 +9,4 @@ coverage !.vitepress docs/.vitepress/cache/deps/*.* test/core/src/self +test/workspaces/results.json diff --git a/examples/vitesse/src/components.d.ts b/examples/vitesse/src/components.d.ts index ee4b23dfe0d1..98b396d361bd 100644 --- a/examples/vitesse/src/components.d.ts +++ b/examples/vitesse/src/components.d.ts @@ -1,11 +1,11 @@ -// generated by unplugin-vue-components -// We suggest you to commit this file into source control +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -import '@vue/runtime-core' - export {} -declare module '@vue/runtime-core' { +declare module 'vue' { export interface GlobalComponents { Foo: typeof import('./components/Foo.vue')['default'] Hello: typeof import('./components/Hello.vue')['default'] diff --git a/packages/ui/client/auto-imports.d.ts b/packages/ui/client/auto-imports.d.ts index 39b0867b993f..8185410d6a10 100644 --- a/packages/ui/client/auto-imports.d.ts +++ b/packages/ui/client/auto-imports.d.ts @@ -5,8 +5,10 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] + const activeFileId: typeof import('./composables/params')['activeFileId'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] + const calcExternalLabels: typeof import('./composables/module-graph')['calcExternalLabels'] const computed: typeof import('vue')['computed'] const computedAsync: typeof import('@vueuse/core')['computedAsync'] const computedEager: typeof import('@vueuse/core')['computedEager'] @@ -14,28 +16,49 @@ declare global { const computedWithControl: typeof import('@vueuse/core')['computedWithControl'] const controlledComputed: typeof import('@vueuse/core')['controlledComputed'] const controlledRef: typeof import('@vueuse/core')['controlledRef'] + const coverage: typeof import('./composables/navigation')['coverage'] + const coverageConfigured: typeof import('./composables/navigation')['coverageConfigured'] + const coverageEnabled: typeof import('./composables/navigation')['coverageEnabled'] + const coverageUrl: typeof import('./composables/navigation')['coverageUrl'] + const coverageVisible: typeof import('./composables/navigation')['coverageVisible'] + const createAnsiToHtmlFilter: typeof import('./composables/error')['createAnsiToHtmlFilter'] const createApp: typeof import('vue')['createApp'] const createEventHook: typeof import('@vueuse/core')['createEventHook'] const createGlobalState: typeof import('@vueuse/core')['createGlobalState'] const createInjectionState: typeof import('@vueuse/core')['createInjectionState'] + const createModuleLabelItem: typeof import('./composables/module-graph')['createModuleLabelItem'] const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn'] const createReusableTemplate: typeof import('@vueuse/core')['createReusableTemplate'] const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable'] const createTemplatePromise: typeof import('@vueuse/core')['createTemplatePromise'] const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn'] + const currentModule: typeof import('./composables/navigation')['currentModule'] const customRef: typeof import('vue')['customRef'] + const dashboardVisible: typeof import('./composables/navigation')['dashboardVisible'] const debouncedRef: typeof import('@vueuse/core')['debouncedRef'] const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch'] const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineComponent: typeof import('vue')['defineComponent'] + const disableCoverage: typeof import('./composables/navigation')['disableCoverage'] const eagerComputed: typeof import('@vueuse/core')['eagerComputed'] const effectScope: typeof import('vue')['effectScope'] const extendRef: typeof import('@vueuse/core')['extendRef'] + const filesFailed: typeof import('./composables/summary')['filesFailed'] + const filesIgnore: typeof import('./composables/summary')['filesIgnore'] + const filesRunning: typeof import('./composables/summary')['filesRunning'] + const filesSkipped: typeof import('./composables/summary')['filesSkipped'] + const filesSnapshotFailed: typeof import('./composables/summary')['filesSnapshotFailed'] + const filesSuccess: typeof import('./composables/summary')['filesSuccess'] + const filesTodo: typeof import('./composables/summary')['filesTodo'] + const finished: typeof import('./composables/summary')['finished'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] + const getModuleGraph: typeof import('./composables/module-graph')['getModuleGraph'] const h: typeof import('vue')['h'] const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch'] + const initializeNavigation: typeof import('./composables/navigation')['initializeNavigation'] const inject: typeof import('vue')['inject'] + const isDark: typeof import('./composables/dark')['isDark'] const isDefined: typeof import('@vueuse/core')['isDefined'] const isProxy: typeof import('vue')['isProxy'] const isReactive: typeof import('vue')['isReactive'] @@ -63,6 +86,8 @@ declare global { const onStartTyping: typeof import('@vueuse/core')['onStartTyping'] const onUnmounted: typeof import('vue')['onUnmounted'] const onUpdated: typeof import('vue')['onUpdated'] + const openInEditor: typeof import('./composables/error')['openInEditor'] + const params: typeof import('./composables/params')['params'] const pausableWatch: typeof import('@vueuse/core')['pausableWatch'] const provide: typeof import('vue')['provide'] const reactify: typeof import('@vueuse/core')['reactify'] @@ -84,22 +109,35 @@ declare global { const shallowReactive: typeof import('vue')['shallowReactive'] const shallowReadonly: typeof import('vue')['shallowReadonly'] const shallowRef: typeof import('vue')['shallowRef'] + const shouldOpenInEditor: typeof import('./composables/error')['shouldOpenInEditor'] + const showCoverage: typeof import('./composables/navigation')['showCoverage'] + const showDashboard: typeof import('./composables/navigation')['showDashboard'] const syncRef: typeof import('@vueuse/core')['syncRef'] const syncRefs: typeof import('@vueuse/core')['syncRefs'] const templateRef: typeof import('@vueuse/core')['templateRef'] + const tests: typeof import('./composables/summary')['tests'] + const testsFailed: typeof import('./composables/summary')['testsFailed'] + const testsIgnore: typeof import('./composables/summary')['testsIgnore'] + const testsSkipped: typeof import('./composables/summary')['testsSkipped'] + const testsSuccess: typeof import('./composables/summary')['testsSuccess'] + const testsTodo: typeof import('./composables/summary')['testsTodo'] const throttledRef: typeof import('@vueuse/core')['throttledRef'] const throttledWatch: typeof import('@vueuse/core')['throttledWatch'] + const time: typeof import('./composables/summary')['time'] const toRaw: typeof import('vue')['toRaw'] const toReactive: typeof import('@vueuse/core')['toReactive'] const toRef: typeof import('vue')['toRef'] const toRefs: typeof import('vue')['toRefs'] const toValue: typeof import('vue')['toValue'] + const toggleDark: typeof import('./composables/dark')['toggleDark'] + const totalTests: typeof import('./composables/summary')['totalTests'] const triggerRef: typeof import('vue')['triggerRef'] const tryOnBeforeMount: typeof import('@vueuse/core')['tryOnBeforeMount'] const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount'] const tryOnMounted: typeof import('@vueuse/core')['tryOnMounted'] const tryOnScopeDispose: typeof import('@vueuse/core')['tryOnScopeDispose'] const tryOnUnmounted: typeof import('@vueuse/core')['tryOnUnmounted'] + const unifiedDiff: typeof import('./composables/diff')['unifiedDiff'] const unref: typeof import('vue')['unref'] const unrefElement: typeof import('@vueuse/core')['unrefElement'] const until: typeof import('@vueuse/core')['until'] @@ -129,6 +167,7 @@ declare global { const useCached: typeof import('@vueuse/core')['useCached'] const useClipboard: typeof import('@vueuse/core')['useClipboard'] const useCloned: typeof import('@vueuse/core')['useCloned'] + const useCodeMirror: typeof import('./composables/codemirror')['useCodeMirror'] const useColorMode: typeof import('@vueuse/core')['useColorMode'] const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog'] const useCounter: typeof import('@vueuse/core')['useCounter'] @@ -263,6 +302,7 @@ declare global { const useWindowFocus: typeof import('@vueuse/core')['useWindowFocus'] const useWindowScroll: typeof import('@vueuse/core')['useWindowScroll'] const useWindowSize: typeof import('@vueuse/core')['useWindowSize'] + const viewMode: typeof import('./composables/params')['viewMode'] const watch: typeof import('vue')['watch'] const watchArray: typeof import('@vueuse/core')['watchArray'] const watchAtMost: typeof import('@vueuse/core')['watchAtMost'] diff --git a/packages/ui/client/components/CodeMirror.vue b/packages/ui/client/components/CodeMirror.vue index f8d2a6ed403f..6d6746e610b1 100644 --- a/packages/ui/client/components/CodeMirror.vue +++ b/packages/ui/client/components/CodeMirror.vue @@ -1,19 +1,19 @@