Skip to content

Conversation

@AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Oct 27, 2025

Description

image

Related Issue

  • Fixes <issue_link>

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

Copilot AI review requested due to automatic review settings October 27, 2025 20:59
@github-project-automation github-project-automation bot moved this to Qualification in OpenCloud Team Board Oct 27, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds line number support to the markdown editor by integrating CodeMirror's line numbers extension.

Key Changes:

  • Added @codemirror/view dependency to enable line numbers functionality
  • Integrated line numbers into the text editor extensions array

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
packages/web-pkg/package.json Added @codemirror/view dependency for line numbers support
packages/web-pkg/src/components/TextEditor/TextEditor.vue Imported and configured line numbers extension in the editor
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AlexAndBear AlexAndBear moved this from Qualification to In Progress in OpenCloud Team Board Oct 27, 2025
return [
...extensions,
{
type: 'lineNumbers',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not everybody likes line numbers.. possible to make them optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need a new toolbar extension for that, possibly doable in a follow up

@AlexAndBear AlexAndBear changed the title feat: show line numbers in markdown editor feat: show line numbers in text/markdown editor, fix lists not rendered correctly Oct 28, 2025
@AlexAndBear AlexAndBear requested a review from kulmann October 28, 2025 12:08
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@AlexAndBear AlexAndBear merged commit 77ea75c into main Oct 28, 2025
28 checks passed
@AlexAndBear AlexAndBear deleted the md-editor-display-line-numbers branch October 28, 2025 12:24
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenCloud Team Board Oct 28, 2025
@openclouders openclouders mentioned this pull request Oct 28, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants