Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code IntelliSense break when use CustomIconLoader or FileSystemIconLoader #3034

Closed
4 tasks done
chz opened this issue Aug 26, 2023 · 5 comments
Closed
4 tasks done
Labels

Comments

@chz
Copy link
Contributor

chz commented Aug 26, 2023

UnoCSS version

0.55.3

Describe the bug

  1. Clone reproduction link to local computer.
  2. Run in vscode.

Custom CustomIconLoader will break VS code IntelliSense.

Uncomment in uno.config.ts

 // load: loadCustomIconSet(),

Uncomment in pages/index.vue

<!-- <div>
      Test Icon Loaded: <i class="text-blue i-load:plus"></i>
    </div> -->

Also IntelliSense not work for FileSystemIconLoader loaded icons:

umico: FileSystemIconLoader(
  './assets/svg',
  svg => svg.replace(/#fff/, 'currentColor'),
),

Reproduction

Repo: https://stackblitz.com/edit/unocss-unocss-xyzsnc?file=uno.config.ts

System Info


  • Operating System: Darwin
  • Node Version: v18.16.1
  • Nuxt Version: 3.7.0
  • CLI Version: 3.7.0
  • Nitro Version: 2.6.1
  • Package Manager: yarn@1.22.19
  • Builder: -
  • User Config: devtools, modules, sourcemap, nitro, app, vite, routeRules, experimental, imports
  • Runtime Modules: @unocss/nuxt@0.55.3
  • Build Modules: -

Validations

@chz chz changed the title VS Code IntelliSense break when use CustomIconLoader and FileSystemIconLoader VS Code IntelliSense break when use CustomIconLoader or FileSystemIconLoader Aug 26, 2023
@chz
Copy link
Contributor Author

chz commented Aug 27, 2023

Also only usage will break suggestion but intellisense will work for default uno presets:

umico: FileSystemIconLoader(
  './assets/svg',
  svg => svg.replace(/#fff/, 'currentColor'),
),

@userquin
Copy link
Member

userquin commented Aug 27, 2023

@userquin
Copy link
Member

ok, the problem is about vscode is broken...

@chz
Copy link
Contributor Author

chz commented Aug 27, 2023

@userquin Check images:

Screenshot 2023-08-26 at 17 31 35 Screenshot 2023-08-26 at 17 31 49

@stale
Copy link

stale bot commented Oct 28, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 28, 2023
@chz chz closed this as completed Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants