DarrenDanielDay

Results 5 comments of DarrenDanielDay

I've made **my** solution for this feature. Here is the solution repo: I'm also trying to make it easier to use, with less extra code. Here is my new idea...

翻了一下issue,发现中国用户比较多,外加[LeetCode-OpenSource](https://github.com/LeetCode-OpenSource)组织位于中国上海,那我也就不强行用我这塑料英语交流了。 简单说下前面的Feature Proposal部分,就是对于习惯使用JavaScript/TypeScript解题的用户提供一些力扣内置数据结构的类型定义。比如`ListNode`、`TreeNode`这种,是由力扣自定义的class,线上编辑器有定义,但`vscode`里就没有还会爆红。可能的实现方法是直接在插件选的放代码的文件夹里直接生成几个类型定义文件,如果必要可以再加个`tsconfig.json`配置文件配上力扣线上判题的编译配置。然后如果这些都能内置集成,可以顺便附加一个基于`nodejs`的运行工具和调试配置,沙箱运行代码可以用`vm.runInContext`。 为什么有这种想法呢?因为在线的编辑器里对`TypeScript`的支持是很好的,目前`TypeScript`也是线上编辑器里唯一一个能免费用到语法分析、代码提示、类型检查的完整功能的语言。既然免费线上编辑器让咱爽了,为啥免费插件就没了呢? 然后这个issue迟迟没有人回应,于是我做了自己的解决方案,代码仓库是这个: 然后我自己用得还是不太爽,今天又搞了个解析示例测试用例的parser,写了demo还给自己提了PR: [demo](https://github.com/DarrenDanielDay/leetcode-typescript-workspace/blob/solutions/1470.%E9%87%8D%E6%96%B0%E6%8E%92%E5%88%97%E6%95%B0%E7%BB%84.ts) [PR](https://github.com/DarrenDanielDay/leetcode-typescript-workspace/pull/1) 但是这parser显然没什么必要,力扣官方肯定有更好的解析用例输入和输出的方法。作为程序员,软件用不爽就会想去hack一些自定义的东西,直到软件本身真正满足了需求。我这么搞真的很浪费时间,希望官方能有更好的方案。

> I think the current behavior is as expected. If you want to achieve the behavior you describe, you should use frontEnd pagination. But in this example, we set `nzTotal`...

Same problem on Windows 10, really annoying. But it seems `parcel` won't crash if I only edit & save `HTML` files that are not **page entries**. Currently I try to...