Skip to content

Commit

Permalink
Fix detection of v3 insiders builds (#1007)
Browse files Browse the repository at this point in the history
* Fix detection of v3 insiders builds

* Update changelog
  • Loading branch information
thecrypticace authored Jul 2, 2024
1 parent b8ba251 commit 2c981a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/tailwindcss-language-service/src/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ export type Feature =
export function supportedFeatures(version: string): Feature[] {
let features: Feature[] = []

if (semver.gte(version, '4.0.0-alpha.1')) {
let isInsidersV3 = version.startsWith('0.0.0-insiders')

if (!isInsidersV3 && semver.gte(version, '4.0.0-alpha.1')) {
return ['css-at-theme', 'layer:base', 'content-list']
}

if (version.startsWith('0.0.0-oxide')) {
if (!isInsidersV3 && version.startsWith('0.0.0-oxide')) {
return ['css-at-theme', 'layer:base', 'content-list']
}

Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-tailwindcss/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerelease

- Nothing yet!
- Fix detection of v3 insiders builds ([#1007](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1007))

## 0.12.3

Expand Down

0 comments on commit 2c981a3

Please sign in to comment.