@unocss/language-server 66.6.4-beta.1 → 66.6.5

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.
Files changed (2) hide show
  1. package/dist/server.cjs +5 -5
  2. package/package.json +5 -5
package/dist/server.cjs CHANGED
@@ -595,7 +595,7 @@ function flatternFilterPattern(pattern) {
595
595
  function definePreset(preset) {
596
596
  return preset;
597
597
  }
598
- var version = "66.6.4-beta.1";
598
+ var version = "66.6.5";
599
599
  const symbols = {
600
600
  shortcutsNoMerge: "$$symbol-shortcut-no-merge",
601
601
  noMerge: "$$symbol-no-merge",
@@ -38027,9 +38027,10 @@ const loadConfigSync = loadConfig$1.sync;
38027
38027
  //#endregion
38028
38028
  //#region ../../packages-engine/config/dist/index.mjs
38029
38029
  async function loadConfig(cwd$1 = node_process.default.cwd(), configOrPath = cwd$1, extraConfigSources = [], defaults$1 = {}) {
38030
- var _result$sources;
38031
38030
  let inlineConfig = {};
38031
+ let hasUserCustomConfig = false;
38032
38032
  if (typeof configOrPath !== "string") {
38033
+ hasUserCustomConfig = true;
38033
38034
  inlineConfig = configOrPath;
38034
38035
  if (inlineConfig.configFile === false) return {
38035
38036
  config: inlineConfig,
@@ -38048,10 +38049,9 @@ async function loadConfig(cwd$1 = node_process.default.cwd(), configOrPath = cwd
38048
38049
  files: resolved,
38049
38050
  extensions: []
38050
38051
  }] : [{ files: ["unocss.config", "uno.config"] }, ...extraConfigSources],
38051
- cwd: cwd$1,
38052
- defaults: inlineConfig
38052
+ cwd: cwd$1
38053
38053
  }).load();
38054
- if (!isFile$1 && !((_result$sources = result.sources) === null || _result$sources === void 0 ? void 0 : _result$sources.length)) consola.error(`[@unocss/config] Config file not found in ${cyan(configOrPath)} - loading default config.`);
38054
+ if (!hasUserCustomConfig && !isFile$1 && !result.config) consola.error(`[@unocss/config] Config file not found in ${cyan(configOrPath)} - loading default config.`);
38055
38055
  result.config = Object.assign(defaults$1, inlineConfig, result.config ?? {});
38056
38056
  if (result.config.configDeps) result.sources = [...result.sources, ...result.config.configDeps.map((i$1) => (0, node_path.resolve)(cwd$1, i$1))];
38057
38057
  return result;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/language-server",
3
3
  "type": "module",
4
- "version": "66.6.4-beta.1",
4
+ "version": "66.6.5",
5
5
  "description": "UnoCSS Language Server",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -39,10 +39,10 @@
39
39
  "unconfig": "^7.5.0",
40
40
  "vscode-languageserver": "^9.0.1",
41
41
  "vscode-languageserver-textdocument": "^1.0.12",
42
- "@unocss/autocomplete": "66.6.4-beta.1",
43
- "@unocss/config": "66.6.4-beta.1",
44
- "@unocss/preset-wind3": "66.6.4-beta.1",
45
- "@unocss/core": "66.6.4-beta.1"
42
+ "@unocss/autocomplete": "66.6.5",
43
+ "@unocss/config": "66.6.4",
44
+ "@unocss/preset-wind3": "66.6.5",
45
+ "@unocss/core": "66.6.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "tsdown": "^0.19.0"