Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment Run: Shire in Code comments #133

Open
phodal opened this issue Nov 6, 2024 · 0 comments
Open

Comment Run: Shire in Code comments #133

phodal opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@phodal
Copy link
Owner

phodal commented Nov 6, 2024

Is your feature request related to a problem? Please describe.

/**
 * ```shire
 * 我需要构建一个页面,这个页面将用于维护某个产品的产品功能树;当用户进入这个页面时候首选需要选择产品(如下单菜单中选择“桌宠”),
 * 然后就展示这个产品现有的产品功能树,产品功能树有分层级,如一级能力、二级能力、三级能力等,
 * 用户可以往功能树里面新增或者删除某级能力。
 * ```
 */
import React, { Key, useEffect, useState } from "react";
import { Button, Empty, Input, message, Select, Spin, Tree } from "antd";
import { CloseOutlined, DeleteOutlined, EditOutlined, EyeOutlined, PlusOutlined } from "@ant-design/icons";
import type { DataNode } from "antd/es/tree";
import { FeatureTreeNode } from "@/app/product/feature-tree/feature.type";
import { SystemInfo } from "@/app/genify.type";
import { CustomUploadButton } from "@/app/product/feature-tree/CustomUploadButton";

Describe the solution you'd like
Enable to run or debug shire in Comment markdown

Describe alternatives you've considered
Enable to Locked current file

Additional context

Tasks Plan:

  1. Use Intellij comment analysis to analyse comment in source code
  2. Add RunLineMarkerContributor in Markdown shire language
@phodal phodal added enhancement New feature or request help wanted Extra attention is needed labels Nov 6, 2024
@phodal phodal changed the title Shire in Code comments Comment Run: Shire in Code comments Nov 12, 2024
phodal added a commit that referenced this issue Nov 16, 2024
Related to #133

Add support for running or debugging Shire code within comments.

* **ParseCommentProcessor.kt**
  - Add logic to extract Shire code from comments.
  - Update `execute` method to handle extracted Shire code.

* **RunCodeProcessor.kt**
  - Update `execute` method to handle code extracted from comments.
  - Add logic to run Shire code extracted from comments.

* **ShireRunLineMarkersProvider.kt**
  - Update `getInfo` method to provide run markers for comments containing Shire code.
  - Add `getCommentInfo` method to handle comments with Shire code.

* **ShireCommenter.kt**
  - Enhance `ShireCommenter` to support running or debugging Shire code within comments.
  - Add logic to identify and extract Shire code blocks within comments.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/phodal/shire/issues/133?shareId=XXXX-XXXX-XXXX-XXXX).
phodal added a commit that referenced this issue Nov 16, 2024
phodal added a commit that referenced this issue Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant