@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.
@@ -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
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
14
- key = keys[i];
15
- if (!__hasOwnProp.call(to, key) && key !== except) {
16
- __defProp(to, key, {
17
- get: ((k) => from[k]).bind(null, key),
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
- //#region ../../node_modules/.pnpm/ufo@1.6.2/node_modules/ufo/dist/index.mjs
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, 'joinURL', {
177
- enumerable: true,
178
- get: function () {
179
- return joinURL;
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, 'withBase', {
183
- enumerable: true,
184
- get: function () {
185
- return withBase;
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
  }