Skip to content

Commit

Permalink
fix(vscode): windows pathe format (#1645)
Browse files Browse the repository at this point in the history
Co-authored-by: Frozen FIsh <76603360+sudongyuer@users.noreply.github.com>
  • Loading branch information
azaleta and sudongyuer committed Sep 26, 2022
1 parent a119022 commit 6183d1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vscode/src/contextLoader.ts
Expand Up @@ -5,6 +5,7 @@ import type { UnocssPluginContext, UserConfig, UserConfigDefaults } from '@unocs
import { notNull } from '@unocss/core'
import { sourceObjectFields, sourcePluginFactory } from 'unconfig/presets'
import presetUno from '@unocss/preset-uno'
import { normalizePath } from 'vite'
import { resolveOptions as resolveNuxtOptions } from '../../nuxt/src/options'
import { createNanoEvents } from '../../core/src/utils/events'
import { createContext, isCssId } from './integration'
Expand Down Expand Up @@ -135,7 +136,7 @@ export class ContextLoader {
return null

const baseDir = dirname(sources[0])
if (baseDir !== dir) {
if (baseDir !== normalizePath(dir)) {
// exists on upper level, skip
this.contextsMap.set(dir, null)
return null
Expand Down

0 comments on commit 6183d1b

Please sign in to comment.