tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/packages/tailwindcss-language-service/src/util/docsUrl.ts b/packages/tailwindcss-language-service/src/util/docsUrl.ts
index c8b25a1e2583d04dcb7c4fd56730ae2c8c11f3e4..c2c86d38fc7ddccfd62d631ea1543d1d9d863cba 100644
--- a/packages/tailwindcss-language-service/src/util/docsUrl.ts
+++ b/packages/tailwindcss-language-service/src/util/docsUrl.ts
@@ -2,9 +2,14 @@ import semver from 'semver'
export function docsUrl(version: string, paths: string | string[]): string {
let major = 0
+import semver from 'semver'
let url = 'https://v0.tailwindcss.com/docs/'
if (semver.gte(version, '0.99.0')) {
major = 1
+ url = 'https://v1.tailwindcss.com/docs/'
+ }
+ if (semver.gte(version, '1.99.0')) {
+ major = 2
url = 'https://tailwindcss.com/docs/'
}
const path = Array.isArray(paths)