Skip to content

feat(vscode): automatically enable Hybrid Mode #4206

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

Merged
merged 6 commits into from
Apr 4, 2024

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Apr 4, 2024

Closes #4131

This introduces the default value of "auto" for vue.server.hybridMode, which automatically enables it based on the compatibility of installed TS plugin extensions with Hybrid Mode.

Currently known compatibility

Extension ID Compatible Requirement
unifiedjs.vscode-mdx
astro-build.astro-vscode
ije.esm-vscode
johnsoncodehk.vscode-tsslint
VisualStudioExptTeam.vscodeintellicode
bierner.lit-html
svelte.svelte-vscode svelte.svelte-vscode >= v108.4.0 (PR: sveltejs/language-tools#2317)
mxsdev.typescript-explorer
jenkey2011.string-highlight
miaonster.vscode-tsx-arrow-definition
runem.lit-plugin
kimuson.ts-type-expand
p42ai.refactor
styled-components.vscode-styled-components vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
Divlo.vscode-styled-jsx-languageserver vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
nrwl.angular-console vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
denoland.vscode-deno
NPM Package ID Compatible Requirement
typescript-lit-html-plugin vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
typescript-plugin-css-modules

If you know of any other compatible TS plugin extensions, please report them here so that we can update the whitelist.

To verify compatibility, simply set "vue.server.hybridMode": true in your VSCode settings and reload VSCode to check if TS support in .vue files is working as expected.

@johnsoncodehk johnsoncodehk merged commit 9965d56 into master Apr 4, 2024
@johnsoncodehk johnsoncodehk deleted the auto-hybrid-mode branch April 4, 2024 11:00
@imal1
Copy link

imal1 commented Apr 12, 2024

bierner.lit-html

@peruibeloko
Copy link

denoland.vscode-deno should be compatible, as long as its not enabled (which is not by default)

The setting for this is deno.enable and should be set on a workspace basis

@Soviut
Copy link

Soviut commented Apr 15, 2024

I got the message that jpoissonnier.vscode-styled-components is incompatible, but I don't even have that installed.

@rogadev
Copy link

rogadev commented Apr 17, 2024

image
I'd really love if this message stopped popping up every time I open one of my Nuxt applications. 🤷

@cannap
Copy link

cannap commented Apr 18, 2024

got this
image

@johnsoncodehk
Copy link
Member Author

johnsoncodehk commented Apr 18, 2024

@rogadev You can disable svelte.svelte-vscode in the Vue project workspace to have Hybrid Mode automatically enabled, or set "vue.server.hybridMode": false to explicitly disable Hybrid Mode to avoid message box.

@johnsoncodehk
Copy link
Member Author

@peruibeloko Did you find that installed denoland.vscode-deno and setting deno.enable to true breaks Hybrid Mode?

@peruibeloko
Copy link

@johnsoncodehk I'll do some testing tomorrow on a clean project using pnpm create vite, but IIRC Deno doesn't even has to be enabled for Volar to report it

@k-paxian
Copy link

image

@johnsoncodehk
Copy link
Member Author

@k-paxian It is known that denoland.vscode-deno is incompatible with Hybrid Mode when enabled. I will check for nrwl.angular-console.

johnsoncodehk added a commit that referenced this pull request Apr 26, 2024
@Kerumen
Copy link

Kerumen commented May 1, 2024

Same as @Soviut, I have the message about jpoissonnier.vscode-styled-components being incompatible but I don't have this installed.

@johnsoncodehk
Copy link
Member Author

image

@Kerumen I think the extension ID of jpoissonnier.vscode-styled-components has been changed to styled-components.vscode-styled-components, have you installed that extension?

@Kerumen
Copy link

Kerumen commented May 2, 2024

image @Kerumen I think the extension ID of `jpoissonnier.vscode-styled-components` has been changed to `styled-components.vscode-styled-components`, have you installed that extension?

Maybe in the past but I don't have it installed anymore. I tried to reinstall / uninstall it and it still displays the same message.

@keaedwar
Copy link

Still getting this in the release below
image
Message is below
image
I can't figure out what plugin it doesn't like. Any clues on how to figure that out would be helpful.
Thanks!

@huqedato
Copy link

same here

3 similar comments
@xuedaobian
Copy link

same here

@zakariabinsaifullah
Copy link

same here

@yvoste
Copy link

yvoste commented Dec 16, 2024

same here

@Soohti
Copy link

Soohti commented Dec 16, 2024

Same issue with Copilot Chat

@jmaister
Copy link

I don't know what this means, take the best guess and remove this message:

image

@13651871775
Copy link

Hybrid Mode is disabled automatically because there is a potentially incompatible GitHub.copilot-chat TypeScript plugin installed.

@mouthguo
Copy link

图片

bytedance-microapp.microapp

@gluons
Copy link

gluons commented Dec 17, 2024

Maybe the fix of copilot warning is coming.

ภาพ

#5044 (comment)
#5047

@jvhuaiying
Copy link

image

@bee1an
Copy link

bee1an commented Dec 19, 2024

image

@HoFaks
Copy link

HoFaks commented Dec 19, 2024

image

@liujinze666
Copy link

image

@kastanientorte
Copy link

I've encountered this situation too.
42855

@ccimage
Copy link

ccimage commented Dec 20, 2024

36616366-efca-4e55-872c-c838ccc15271

@alexovn
Copy link

alexovn commented Dec 20, 2024

Stop pollute this thread. One or two messages on this problem were enough. Wait for the fix and turn on HybridMode to true explicitly for now

@HitsoKeyco
Copy link

VSC alert !! Hybrid Mode is disabled automatically because there is a pootencially incompatible GitHub.copilot-chat Typescript plugin installed.

@antfu
Copy link
Member

antfu commented Dec 24, 2024

Put this setting to explicitly enable hybrid mode and bypass the warning:

{
  "vue.server.hybridMode": true
}

@franciscolourenco
Copy link

Copy link

@moazzem-pixel moazzem-pixel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for support

@DailyInvestors
Copy link

Closes #4131

This introduces the default value of "auto" for vue.server.hybridMode, which automatically enables it based on the compatibility of installed TS plugin extensions with Hybrid Mode.

Currently known compatibility

Extension ID Compatible Requirement
unifiedjs.vscode-mdx ✅
astro-build.astro-vscode ✅
ije.esm-vscode ✅
johnsoncodehk.vscode-tsslint ✅
VisualStudioExptTeam.vscodeintellicode ✅
bierner.lit-html ✅
svelte.svelte-vscode ✅ svelte.svelte-vscode >= v108.4.0 (PR: sveltejs/language-tools#2317)
mxsdev.typescript-explorer ✅
jenkey2011.string-highlight ✅
miaonster.vscode-tsx-arrow-definition ✅
runem.lit-plugin ✅
kimuson.ts-type-expand ✅
p42ai.refactor ✅
styled-components.vscode-styled-components ✅ vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
Divlo.vscode-styled-jsx-languageserver ✅ vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
nrwl.angular-console ✅ vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
denoland.vscode-deno ❌
NPM Package ID Compatible Requirement
typescript-lit-html-plugin ✅ vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
typescript-plugin-css-modules ❌
If you know of any other compatible TS plugin extensions, please report them here so that we can update the whitelist.

To verify compatibility, simply set "vue.server.hybridMode": true in your VSCode settings and reload VSCode to check if TS support in .vue files is working as expected.

Just experienced the same Problem. It is set on auto, but it is saying incompatible. Running a flex, could be the reason. But running a flex to hit Google with all Google, or all Microsoft haha

@matheussouza-pwn
Copy link

matheussouza-pwn commented May 15, 2025

It says it's incompatible with Postman as well.
image

@seksity
Copy link

seksity commented May 15, 2025


Screenshot 2025-05-16 at 5 22 16 AM

Screenshot 2025-05-16 at 5 25 19 AM

@isimmons
Copy link

Same as seksity above with postman extension. I don't even know what hybrid mode is. Vue extension should be completely silent and inactive if I'm not in a Vue or Nuxt project anyway. I just opened a markdown file to edit.

Please turn off. Thanks

@ceferrari
Copy link

Same with Postman extension

@xxxyalaxx90xxx
Copy link

Schließt #4131

Dadurch wird der Standardwert von for eingeführt, der ihn basierend auf der Kompatibilität der installierten TS-Plug-In-Erweiterungen mit dem Hybridmodus automatisch aktiviert."auto"``vue.server.hybridMode

Derzeit bekannte Kompatibilität

ID der Erweiterung Kompatibel Anforderung
unifiedjs.vscode-mdx ✅
astro-bauen.astro-vscode ✅
ije.esm-vscode ✅
johnsoncodehk.vscode-tsslint ✅
VisualStudioExptTeam.vscodeintellicode ✅
bierner.lit-html ✅
svelte.svelte-vscode ✅ svelte.svelte-vscode >= v108.4.0 (PR: sveltejs/language-tools#2317)
mxsdev.typescript-explorer ✅
jenkey2011.string-highlight ✅
miaonster.vscode-tsx-pfeildefinition ✅
runem.lit-plugin ✅
kimuson.ts-Typ-Erweiterung ✅
p42ai.refactor ✅
styled-components.vscode-styled-components ✅ vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
Divlo.vscode-styled-jsx-languageserver ✅ vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
nrwl.angular-konsole ✅ vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
denoland.vscode-deno ❌
NPM-Paket-ID Kompatibel Anforderung
typescript-lit-html-plugin ✅ vue.volar >= v2.0.24 (PR: volarjs/volar.js#216)
typescript-plugin-css-module ❌
Wenn Sie weitere kompatible TS-Plugin-Erweiterungen kennen, melden Sie diese bitte hier, damit wir die Whitelist aktualisieren können.

Um die Kompatibilität zu überprüfen, legen Sie einfach die VSCode-Einstellungen fest und laden Sie VSCode neu, um zu überprüfen, ob die TS-Unterstützung in .vue-Dateien wie erwartet funktioniert."vue.server.hybridMode": true

@BasementWoodworker
Copy link

false positive

@DailyInvestors
Copy link

I had this problem occur as well, but it was nothing to do with VUE that caused this. If you have .dotnet installed, force the updated SDK install. This is a open vuln, and in my opinion I think this affected the Vue. After I debugged and uninstalled the hybrid request faded away. Their are always false errors, but at times the true Malicious actors will sabotage anything and everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Automatically enable Hybrid Mode