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

从2.1.10升级到2.2.0之后,每修改一行,vscode 代码中的 typescript 警告和错误提示都会闪烁一次 (Hybrid Mode) #5098

Open
fullmooooon opened this issue Dec 30, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@fullmooooon
Copy link

Vue - Official extension or vue-tsc version

2.2.0

VSCode version

1.96.2

Vue version

"vue": "3.5.13"

TypeScript version

"typescript": "~5.6.2"

System Info

No response

package.json dependencies

No response

Steps to reproduce

Vue - Official插件 与 GitHub.copilot-chat插件一起使用

What is expected?

2.2.0与2.1.10行为一致,会弹框提示

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

What is actually happening?

Hybrid Mode 行为与 2.1.10行为不一致,导致每次修改 typescript 提示闪烁

Link to minimal reproduction

No response

Any additional comments?

No response

@KazariEX
Copy link
Collaborator

怎样的闪烁呢?弹框提示是默认行为,已经将它添加到兼容列表里了。

@fullmooooon
Copy link
Author

怎样的闪烁呢?弹框提示是默认行为,已经将它添加到兼容列表里了。

@KazariEX
Vue - [email protected] 遇到 GitHub.copilot-chat 时没有跟 Vue - [email protected] 一样自动进入 Hybrid Mode 兼容模式。
Vue - [email protected] 没有这个弹框

2024-12-30.132612.mp4

在 Vue - [email protected] 下,我把 Vue › Server: Hybrid Mode 从 Auto 改成 typeScriptPluginOnly 就不会闪
或者使用 Vue - [email protected] 也不会闪

@KazariEX
Copy link
Collaborator

2.1.10 并不是进入兼容模式,是直接关闭的,没有这个模式。应该是 2.2.0 的 bug,但我暂时无法复现。

你把其他扩展都禁用了试试看是不是存在什么冲突导致的。

@fullmooooon
Copy link
Author

2.1.10 并不是进入兼容模式,是直接关闭的,没有这个模式。应该是 2.2.0 的 bug,但我暂时无法复现。

你把其他扩展都禁用了试试看是不是存在什么冲突导致的。

@KazariEX
试了两次扩展二等分了,都是把vue.volor标记为问题扩展。
GitHub CopilotGitHub Copilot Chat关闭也有这个问题。
.vue文件内容较小的时候看不出来闪烁,文件内容稍微大一点时有时会闪个一帧,我有一个2000行的复杂代码是一直能复现的。

我有一个能经常复现的案例

<template>
    <div>

    </div>
</template>

<script setup lang="ts">
let obj = {}

//Repeat 5000 lines !
//Repeat 5000 lines !
//Repeat 5000 lines !
obj = () => { };
obj = () => { };
obj = () => { };
obj = () => { };
obj = () => { };
obj = () => { };
obj = () => { };
...........

let a = {}
</script>

<style scoped>

</style>

@fullmooooon fullmooooon changed the title 从2.1.10升级到2.2.0之后,每修改一行,vscode 代码中的 typescript 警告和错误提示都会闪烁一次 (Hybrid Mode)(GitHub.copilot-chat) 从2.1.10升级到2.2.0之后,每修改一行,vscode 代码中的 typescript 警告和错误提示都会闪烁一次 (Hybrid Mode) Dec 30, 2024
@KazariEX KazariEX added bug Something isn't working and removed need info labels Dec 30, 2024
@galaxy-s10
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants