chore(editor): use at menu to insert linked doc (#10808)

Close [BS-2799](https://linear.app/affine-design/issue/BS-2799/区分linked-doc入口)

This PR removes the patch for `Linked Doc` action in the slash menu via the `QuickSearch`, reverting it to use the at menu for inserting.
This commit is contained in:
L-Sun
2025-03-13 08:01:59 +00:00
parent 0f062b7157
commit 7ba1c1b271
2 changed files with 1 additions and 36 deletions

View File

@@ -152,10 +152,7 @@ export function patchQuickSearchService(framework: FrameworkProvider) {
overrideFn(BookmarkSlashMenuConfigIdentifier);
const modifyFn = (item: SlashMenuItem): SlashMenuItem => {
if (
'action' in item &&
(item.name === 'Linked Doc' || item.name === 'Link')
) {
if ('action' in item && item.name === 'Link') {
item.action = ({ std }) => {
const [success, { insertedLinkType }] = std.command.exec(
insertLinkByQuickSearchCommand