Skip to content

Commit 174d28f

Browse files
fix: 🐛 configuration not reloading correctly
1 parent 89d52d0 commit 174d28f

File tree

4 files changed

+269
-94
lines changed

4 files changed

+269
-94
lines changed

package-lock.json

+55
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@
265265
"tslib": "2.3.1",
266266
"typescript": "4.6.3",
267267
"windicss": "3.5.1",
268-
"windicss-analysis": "0.3.5"
268+
"windicss-analysis": "0.3.5",
269+
"unconfig": "0.3.3"
269270
},
270271
"displayName": "WindiCSS IntelliSense",
271272
"engines": {
@@ -301,5 +302,8 @@
301302
},
302303
"volta": {
303304
"node": "16.14.2"
305+
},
306+
"dependencies": {
307+
304308
}
305309
}

src/extension.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import Extension from "./lib";
2-
import { Log } from "./utils/console";
1+
import Extension from './lib';
2+
import { Log } from './utils/console';
33
import {
44
ExtensionContext,
55
RelativePattern,
66
workspace as Workspace,
7-
} from "vscode";
7+
} from 'vscode';
88

9-
const CONFIG_FILE_GLOB = "{tailwind,windi}.config.{js,cjs,mjs,ts}";
9+
const CONFIG_FILE_GLOB = '{tailwind,windi}.config.{ts,mts,cts,js,mjs,cjs}';
1010

1111
export async function activate(ctx: ExtensionContext) {
1212
const extension = new Extension(
@@ -16,10 +16,10 @@ export async function activate(ctx: ExtensionContext) {
1616
`**/${CONFIG_FILE_GLOB}`
1717
)
1818
);
19-
extension.init();
19+
await extension.init();
2020
extension.watch();
2121
extension.registerCodeFolding();
22-
Log.info("Windi CSS Intellisense Is Now Active!");
22+
Log.info('Windi CSS Intellisense Is Now Active!');
2323
}
2424

2525
// eslint-disable-next-line @typescript-eslint/no-empty-function

0 commit comments

Comments
 (0)