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

fix(hybridMode): update enabledHybridMode before activate extension #5019

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nieyuyao
Copy link

fix #5002

the issue seems to only occur when HybridMode is turned off.

the enabledHbridMode variable is initialized to true, but was not updated to the correct value before patching vscode.typescript-language-features.

export const enabledHybridMode = ref<boolean>(true);

if (!enabledTypeScriptPlugin.value) {
text = text.replace(
'for(const e of n.contributes.typescriptServerPlugins',
s => s + `.filter(p=>p.name!=='vue-typescript-plugin-pack')`
);

so, both tsserver and vue language server will respond to completions, and they are duplicated.

Copy link

pkg-pr-new bot commented Nov 23, 2024

Open in Stackblitz

vue-component-meta

pnpm add https://pkg.pr.new/vuejs/language-tools/vue-component-meta@5019

vue-component-type-helpers

pnpm add https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@5019

@vue/language-plugin-pug

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@5019

@vue/language-core

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-core@5019

@vue/language-server

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-server@5019

@vue/language-service

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/language-service@5019

vue-tsc

pnpm add https://pkg.pr.new/vuejs/language-tools/vue-tsc@5019

@vue/typescript-plugin

pnpm add https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@5019

commit: 30c74e5

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.

Duplicate code suggestions on some items
2 participants