@unocss/language-server 66.6.6-beta.1 → 66.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-C9ebiww4.mjs → chunk-CBBoxR_p.mjs} +8 -14
- package/dist/{dist-Dwf-d4OE.mjs → dist-DJp734Em.mjs} +2 -4
- package/dist/{dist-BUrt6dYo.cjs → dist-FL7p7uq2.cjs} +17 -20
- package/dist/index.d.mts +6 -1
- package/dist/index.mjs +652 -701
- package/dist/jiti-du6HSta6.cjs +4474 -0
- package/dist/{loader-CxlILAbz.mjs → loader-DsXvVy9i.mjs} +4 -19
- package/dist/{multipart-parser-s9tbX9e1.cjs → multipart-parser-DiNB_U8f.cjs} +13 -15
- package/dist/{multipart-parser-D3zGHRx2.mjs → multipart-parser-KkZpcbcp.mjs} +3 -5
- package/dist/{node-B8nS8lcG.cjs → node-3wiZdXIz.cjs} +40 -42
- package/dist/{node-CautW6cw.cjs → node-BM09n__k.cjs} +969 -967
- package/dist/{node-rKyHxxpg.mjs → node-Cd2HRubI.mjs} +930 -928
- package/dist/{node-DvibxqDE.mjs → node-D23LglTq.mjs} +32 -34
- package/dist/{node-loader-BO0uvH6Z.cjs → node-loader-BJV6yUBJ.cjs} +676 -689
- package/dist/{node-loader-DpZIWCu9.mjs → node-loader-ZSa5xzQw.mjs} +440 -453
- package/dist/{prompt-BJqhZQ-_.cjs → prompt-jldWOuck.cjs} +265 -267
- package/dist/server.cjs +14287 -14490
- package/package.json +39 -6
- package/dist/jiti-B459FbZV.cjs +0 -4477
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
6
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -9,16 +8,12 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
9
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
9
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
10
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
22
17
|
}
|
|
23
18
|
return to;
|
|
24
19
|
};
|
|
@@ -27,6 +22,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
22
|
enumerable: true
|
|
28
23
|
}) : target, mod));
|
|
29
24
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
|
-
|
|
31
25
|
//#endregion
|
|
32
|
-
export { __require as n, __toESM as r, __commonJSMin as t };
|
|
26
|
+
export { __require as n, __toESM as r, __commonJSMin as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const r = String.fromCharCode;
|
|
1
|
+
String.fromCharCode;
|
|
3
2
|
const HASH_RE = /#/g;
|
|
4
3
|
const AMPERSAND_RE = /&/g;
|
|
5
4
|
const SLASH_RE = /\//g;
|
|
@@ -170,6 +169,5 @@ function stringifyParsedURL(parsed) {
|
|
|
170
169
|
const host = parsed.host || "";
|
|
171
170
|
return (parsed.protocol || parsed[protocolRelative] ? (parsed.protocol || "") + "//" : "") + auth + host + pathname + search + hash;
|
|
172
171
|
}
|
|
173
|
-
|
|
174
172
|
//#endregion
|
|
175
|
-
export { withBase as n, withQuery as r, joinURL as t };
|
|
173
|
+
export { withBase as n, withQuery as r, joinURL as t };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../../node_modules/.pnpm/ufo@1.6.2/node_modules/ufo/dist/index.mjs
|
|
3
|
-
const r = String.fromCharCode;
|
|
1
|
+
String.fromCharCode;
|
|
4
2
|
const HASH_RE = /#/g;
|
|
5
3
|
const AMPERSAND_RE = /&/g;
|
|
6
4
|
const SLASH_RE = /\//g;
|
|
@@ -171,23 +169,22 @@ function stringifyParsedURL(parsed) {
|
|
|
171
169
|
const host = parsed.host || "";
|
|
172
170
|
return (parsed.protocol || parsed[protocolRelative] ? (parsed.protocol || "") + "//" : "") + auth + host + pathname + search + hash;
|
|
173
171
|
}
|
|
174
|
-
|
|
175
172
|
//#endregion
|
|
176
|
-
Object.defineProperty(exports,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
173
|
+
Object.defineProperty(exports, "joinURL", {
|
|
174
|
+
enumerable: true,
|
|
175
|
+
get: function() {
|
|
176
|
+
return joinURL;
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "withBase", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function() {
|
|
182
|
+
return withBase;
|
|
183
|
+
}
|
|
181
184
|
});
|
|
182
|
-
Object.defineProperty(exports,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
Object.defineProperty(exports, "withQuery", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function() {
|
|
188
|
+
return withQuery;
|
|
189
|
+
}
|
|
187
190
|
});
|
|
188
|
-
Object.defineProperty(exports, 'withQuery', {
|
|
189
|
-
enumerable: true,
|
|
190
|
-
get: function () {
|
|
191
|
-
return withQuery;
|
|
192
|
-
}
|
|
193
|
-
});
|
package/dist/index.d.mts
CHANGED
|
@@ -19,6 +19,7 @@ declare class ContextManager {
|
|
|
19
19
|
private loadingContexts;
|
|
20
20
|
private discoveredConfigs;
|
|
21
21
|
private readonly defaultUnocssConfig;
|
|
22
|
+
private readonly workspaceRoots;
|
|
22
23
|
events: _unocss_core0.Emitter<{
|
|
23
24
|
reload: () => void;
|
|
24
25
|
unload: (context: UnocssPluginContext<UserConfig<any>>) => void;
|
|
@@ -26,15 +27,18 @@ declare class ContextManager {
|
|
|
26
27
|
contextReload: (context: UnocssPluginContext<UserConfig<any>>) => void;
|
|
27
28
|
contextUnload: (context: UnocssPluginContext<UserConfig<any>>) => void;
|
|
28
29
|
}>;
|
|
29
|
-
constructor(cwd: string, connection: Connection);
|
|
30
|
+
constructor(cwd: string, connection: Connection, workspaceRoots?: string[]);
|
|
30
31
|
private log;
|
|
31
32
|
private warn;
|
|
32
33
|
isTarget(id: string): boolean;
|
|
33
34
|
get contexts(): UnocssPluginContext<UserConfig<any>>[];
|
|
35
|
+
setRoots(roots: string[]): Promise<void>;
|
|
34
36
|
reload(): Promise<void>;
|
|
35
37
|
unloadContext(configDir: string): Promise<void>;
|
|
36
38
|
unload(configDir: string): Promise<void>;
|
|
37
39
|
private clearFileContextCache;
|
|
40
|
+
private resetCaches;
|
|
41
|
+
private loadRoots;
|
|
38
42
|
loadContextInDirectory(dir: string): Promise<UnoContext$1>;
|
|
39
43
|
private loadContext;
|
|
40
44
|
private setupYarnPnp;
|
|
@@ -44,6 +48,7 @@ declare class ContextManager {
|
|
|
44
48
|
resolveClosestContext(code: string, file: string): Promise<UnoContext$1 | undefined>;
|
|
45
49
|
private discoverAndLoadConfig;
|
|
46
50
|
private findConfigDirectory;
|
|
51
|
+
private getWorkspaceBoundary;
|
|
47
52
|
private hasConfigFiles;
|
|
48
53
|
private cacheSearchPath;
|
|
49
54
|
}
|