Giter VIP home page Giter VIP logo

Comments (5)

SaekiRaku avatar SaekiRaku commented on May 15, 2024

感谢反馈!我看看能否优化下触发规则

from vscode-rainbow-fart.

woaibiancheng01214 avatar woaibiancheng01214 commented on May 15, 2024

Keywords like $time_before... will trigger the same.

from vscode-rainbow-fart.

woaibiancheng01214 avatar woaibiancheng01214 commented on May 15, 2024

可以用stack试一下,比如在读键盘buffer的时候,遇到空格,圆括号,方括号,等号,引号。欸不行,如果用户在单词中间编辑单词就失效了。

那要不要考虑一下vscode关于获取用户正在编辑的行的api什么的?就是每次输入一个字符就查询当前行是否有关键字?

from vscode-rainbow-fart.

SaekiRaku avatar SaekiRaku commented on May 15, 2024

@woaibiancheng01214 经过几天的考虑,我的观点是:更精确的触发规则最好是通过 AST 库进行解析,但这样对于一个娱乐性插件来说,技术投入与用户体验回报不太成正比(请参阅:https://saekiraku.github.io/vscode-rainbow-fart/#/zh/qa.md#%E8%83%BD%E5%90%A6%E6%9B%B4%E7%B2%BE%E7%A1%AE%E7%9A%84%E6%A3%80%E6%B5%8B%E5%85%B3%E9%94%AE%E5%AD%97%EF%BC%9F )。目前我这边认为相对简单的处理方式是对关键字进行语言限制,来尽可能的规避误触发。

from vscode-rainbow-fart.

woaibiancheng01214 avatar woaibiancheng01214 commented on May 15, 2024

@SaekiRaku 有道理,哈哈,我如果有时间看看这种技术实践就来试一试

from vscode-rainbow-fart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.