willofindie / vscode-cssvar

VSCode extension to support CSS Variables Intellisense
https://marketplace.visualstudio.com/items?itemName=phoenisx.cssvar
MIT License
243 stars 4 forks source link

[Bug] The CSSVar stop works when some variable name is enough big #116

Open LeandroMoura3 opened 7 months ago

LeandroMoura3 commented 7 months ago

Describe the bug When a css variable is too long, a exception of CSSVar Complete is throw: Populating Variable Values: RangeError: Maximum call stack size exceeded.

To Reproduce Add this css variable in any .css file that was watched by CSSVar:

:root { --rp-color--button-secondary-background-disabled: var( --rp-color--neutral-100 ); --rp-color--neutral-100: #ffffff; }

Expected behavior The exception don't happens and the CSSVar Complete still run.

Details (please complete the following information): CSS Var Complete v2.6.4

Version: 1.86.1 (user setup) Commit: 31c37ee8f63491495ac49e43b8544550fbae4533 Date: 2024-02-07T09:08:20.941Z Electron: 27.2.3 ElectronBuildId: 26495564 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.19045

phoenisx commented 6 months ago

Thanks for raising this issue. I am currently busy with other tasks, but am open to PR contributions. 👍🏽