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

feat(vscode): automatically enable Hybrid Mode #4206

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
6 checks passed
@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.

@fschroiff
Copy link

Literally any VSCode window I open I get a message

Hybrid Mode is disabled automatically because there is a potentially incompatible jpoissonnier.vscode-styled-components TypeScript plugin installed.

Not only for vue projects, but for literally any VSCode window I open. And I don't even have that "incompatible plugin" installed...

@pandres95
Copy link

Literally any VSCode window I open I get a message

Hybrid Mode is disabled automatically because there is a potentially incompatible jpoissonnier.vscode-styled-components TypeScript plugin installed.

Not only for vue projects, but for literally any VSCode window I open. And I don't even have that "incompatible plugin" installed...

This 👆

@darrelfrancis
Copy link
Contributor

I get this with Github Copilot Chat. Interestingly it is specifically from the "Github Copilot Chat" (which I never use) and not the main "Github Copilot", but I don't seem to be able to install one without the other.

image

@stephanjohnson
Copy link

I get this with Github Copilot Chat. Interestingly it is specifically from the "Github Copilot Chat" (which I never use) and not the main "Github Copilot", but I don't seem to be able to install one without the other.

image

I am getting the same

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

@FabianMontoya
Copy link

I get this with Github Copilot Chat. Interestingly it is specifically from the "Github Copilot Chat" (which I never use) and not the main "Github Copilot", but I don't seem to be able to install one without the other.

image

Same Here

GitHub.copilot-chat TypeScript plugin installed.

image

@Zheng-Shuo
Copy link

I got the same issue. Are there any solutions now?
Screenshot 2024-12-12 at 09 03 49

@jeoooo
Copy link

jeoooo commented Dec 12, 2024

currently having this issue

image

@GuoJikun
Copy link

image

@Bourne115
Copy link

image

@Ahrjen
Copy link

Ahrjen commented Dec 13, 2024

image

@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
}

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