weixin_39517560
2020-12-09 03:41 阅读 0

Hyperlink support

I've added support for hyperlink targets so other plugins can create yaml hyperlink detectors.

该提问来源于开源项目:oyse/yedit

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

6条回答 默认 最新

  • weixin_39970064 weixin_39970064 2020-12-09 03:41

    I don't think I know what an Eclipse hyperlink target is. Do you have something I can test this feature on?

    I have added some comments to the code. This is mostly nitpicking and questions to see if I understand the code or not.

    点赞 评论 复制链接分享
  • weixin_39517560 weixin_39517560 2020-12-09 03:41

    When you ctrl+click on a java variable in your Java file, the Java editor acts as a hyperlink target, and others can register hyperlink detectors for this target.

    This would be a handy feature also for the yaml editor, as others could write hyperlink detectors for model elements described in yml. Here's an example of a Yaml hyperlink detector detecting PHP class names in yaml files and linking to the corresponding PHP file.

    If you want i can write a plugin which you can use to test the feature.

    点赞 评论 复制链接分享
  • weixin_39517560 weixin_39517560 2020-12-09 03:41

    Here's the yaml detector class. it does nothing at the moment though.

    You can find a couple of working ones for PHP targets here

    点赞 评论 复制链接分享
  • weixin_39517560 weixin_39517560 2020-12-09 03:41

    I've created a sample plugin you can use to test the feature.

    点赞 评论 复制链接分享
  • weixin_39517560 weixin_39517560 2020-12-09 03:41

    I would have another pull request available which adds a preference setting for the severity of validation errors (Error, Warning, Ignore). Do you want me to add it to this PR, or shall i wait until this one is merged?

    点赞 评论 复制链接分享
  • weixin_39970064 weixin_39970064 2020-12-09 03:41

    You can add it as a separate pull request.

    I will try to look over the request and merge the request this weekend.

    2011/11/23 Robert Gruendler < reply.github.com

    I would have another pull request available which adds a preference setting for the severity of validation errors (Error, Warning, Ignore). Do you want me to add it to this PR, or shall i wait until this one is merged?

    Reply to this email directly or view it on GitHub: https://github.com/oyse/yedit/pull/6#issuecomment-2855010

    点赞 评论 复制链接分享

相关推荐