zzkkui
zzkkui
您好,请问你们有需要做ide非活动后一段时间提示或者断开链接吗?跟gitpod类似,非活动一段时间会自动断开。目前想的是通过追踪ws,根据里面的message来判断。不过目前追踪message,会修改到源码。不知道您这边有研究吗?
> > 您好,请问你们有需要做ide非活动后一段时间提示或者断开链接吗?跟gitpod类似,非活动一段时间会自动断开。目前想的是通过追踪ws,根据里面的message来判断。不过目前追踪message,会修改到源码。不知道您这边有研究吗? > > @zzkkui 方法很多,最简单的方式就是通过注入 JS 脚本轮询实现。 对,肯定会采用轮询,目前的话我觉得有两种方法可行,一种就是通过`mouseover` 事件,另外一种就是追踪 ws 的message,判断是否是像下面这种状态   但是如何在不修改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 
@magicdvd  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   ...