Skip to content

Commit

Permalink
fix(vscode): hit context cache and avoid loading config file twice (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyPi committed Jul 6, 2022
1 parent 6f07296 commit 5747ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vscode/src/index.ts
Expand Up @@ -24,12 +24,12 @@ export async function activate(ext: ExtensionContext) {

const contextLoader = new ContextLoader(cwd)

await contextLoader.ready

const hasConfig = await contextLoader.loadContextInDirectory(cwd)
if (!hasConfig)
return

await contextLoader.ready

const status = window.createStatusBarItem(StatusBarAlignment.Right, 200)
status.text = 'UnoCSS'

Expand Down

0 comments on commit 5747ea5

Please sign in to comment.