Results 6 comments of zzkkui

您好,请问你们有需要做ide非活动后一段时间提示或者断开链接吗?跟gitpod类似,非活动一段时间会自动断开。目前想的是通过追踪ws,根据里面的message来判断。不过目前追踪message,会修改到源码。不知道您这边有研究吗?

> > 您好,请问你们有需要做ide非活动后一段时间提示或者断开链接吗?跟gitpod类似,非活动一段时间会自动断开。目前想的是通过追踪ws,根据里面的message来判断。不过目前追踪message,会修改到源码。不知道您这边有研究吗? > > @zzkkui 方法很多,最简单的方式就是通过注入 JS 脚本轮询实现。 对,肯定会采用轮询,目前的话我觉得有两种方法可行,一种就是通过`mouseover` 事件,另外一种就是追踪 ws 的message,判断是否是像下面这种状态 ![image](https://user-images.githubusercontent.com/24466870/127089993-ae78f77a-6e63-4f59-a590-63fefcd6f172.png) ![image](https://user-images.githubusercontent.com/24466870/127090006-6c47881d-2638-410d-a199-f953588c2ed4.png) 但是如何在不修改theia源码的情况下,我还没找方法通过扩展的方式来拦截 https://github.com/eclipse-theia/theia/blob/65509341ebf2e6c2aedd98c066c9d405a111200f/packages/core/src/common/messaging/web-socket-channel.ts#L118-L122 或者 https://github.com/eclipse-theia/theia/blob/65509341ebf2e6c2aedd98c066c9d405a111200f/packages/core/src/common/messaging/abstract-connection-provider.ts#L107-L116 不知道您这边有做过相关研究没。谢谢

> @kangkai124 我这边试了一下,只要一个对象的 `length` 属性为数字,同时`splice`属性为函数时, 对象的函数输出结果就会变成 伪数组。 > > ```js > var obj1 = { > length: 1, > splice: function () {}, > }; // Object [empty, splice: ƒ]...

I have the same problem with tsx,I think the language props does not work ![image](https://user-images.githubusercontent.com/24466870/96092585-a86a8500-0efd-11eb-82e0-3b99c7734fb8.png)

@magicdvd ![image](https://user-images.githubusercontent.com/24466870/28669364-9daa91d2-7306-11e7-82af-6cbb7906075f.png) Why is there an error??

I am using deepseek and my deepseek has a credit limit. When I start it, the command line reports an error and chat returns 404. before chat ![Image](https://github.com/user-attachments/assets/aa6a36ba-fb37-4605-9ed1-917cabab736a) ![Image](https://github.com/user-attachments/assets/3559b41c-7a5a-404a-9da1-267d0f5f1aa3) ![Image](https://github.com/user-attachments/assets/7dfab889-93cd-4576-b5a0-99277578c0f2)...