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

chore: comment suggesting use of deprecated method #417

Conversation

MayurSMahajan
Copy link
Contributor

Recently we have deprecated the the use of selection.collapse() and asked devs to use selection.collapsed() instead.
But the comment on selection.collapsed() suggests otherwise, this is confusing for the developer.

This PR removes the old comment on selection.collapsed() which asks the dev to use the selection.collapse() method.

@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

Merging #417 (900b60d) into main (a9af2bb) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #417   +/-   ##
=======================================
  Coverage   80.61%   80.61%           
=======================================
  Files         255      255           
  Lines       10441    10441           
=======================================
  Hits         8417     8417           
  Misses       2024     2024           
Files Changed Coverage Δ
lib/src/core/location/selection.dart 93.02% <ø> (ø)

@LucasXu0 LucasXu0 merged commit c722ec1 into AppFlowy-IO:main Aug 28, 2023
q200892907 added a commit to q200892907/appflowy-editor that referenced this pull request Aug 28, 2023
* main: (48 commits)
  chore: comment suggesting use of deprecated method (AppFlowy-IO#417)
  fix: replace matches on the same node (AppFlowy-IO#418)
  fix: rect of the divider block is incorrect (AppFlowy-IO#415)
  chore: bump version 1.2.4 (AppFlowy-IO#414)
  feat: migrate copy paste command from AppFlowy (AppFlowy-IO#413)
  feat: added support for custom parser for markdown to document (AppFlowy-IO#403)
  feat: improve CJK IME support
  feat: add support for context menu items to the editor
  fix: refactor _onSelectionChange method to update _showPlaceholder state more efficiently
  fix: typo (AppFlowy-IO#408)
  Fix selected nodes (AppFlowy-IO#407)
  fix: miss the nested node when copying (AppFlowy-IO#406)
  feat: skip whitespace between words while navigating with CTRL+ARROW keys (AppFlowy-IO#363)
  feat: double hyphen to em dash (AppFlowy-IO#395)
  fix: add variable to hold editor selection for colour menu (AppFlowy-IO#400)
  test: open link command
  refactor: show link command test
  refactor: show link menu command
  feat: open link command
  fix: placeholder on paragraph when selected (AppFlowy-IO#390)
  ...
zoli added a commit to zoli/appflowy-editor that referenced this pull request Aug 28, 2023
* main:
  chore: comment suggesting use of deprecated method (AppFlowy-IO#417)
  fix: replace matches on the same node (AppFlowy-IO#418)
zoli added a commit to zoli/appflowy-editor that referenced this pull request Aug 28, 2023
…-state-update-node

* fix/previous-node-text-direction-null:
  feat: default text direction property (AppFlowy-IO#402)
  fix: fixed the cursor not moving to next line after inserting divider (AppFlowy-IO#371)
  chore: update theme colors for editor
  feat: refactor floating toolbar positioning logic
  fix: update resizable image width calculation with minimum width constraint
  chore: comment suggesting use of deprecated method (AppFlowy-IO#417)
  fix: replace matches on the same node (AppFlowy-IO#418)
  fix: rect of the divider block is incorrect (AppFlowy-IO#415)
  chore: bump version 1.2.4 (AppFlowy-IO#414)
  feat: migrate copy paste command from AppFlowy (AppFlowy-IO#413)
  feat: added support for custom parser for markdown to document (AppFlowy-IO#403)
  feat: improve CJK IME support
  feat: add support for context menu items to the editor
  fix: refactor _onSelectionChange method to update _showPlaceholder state more efficiently
  fix: typo (AppFlowy-IO#408)
  Fix selected nodes (AppFlowy-IO#407)
  fix: miss the nested node when copying (AppFlowy-IO#406)
@MayurSMahajan MayurSMahajan deleted the fix_remove_comment_for_selection_collapsed branch March 28, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants