From ac60d5c3d079a41e4e6f644910ff2be8f2d16050 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Mon, 30 Mar 2026 14:11:47 +0200 Subject: [PATCH] fix: update changelog and improve code formatting in ContentActions component --- CHANGELOG.md | 1 + package.json | 2 +- src/dashboardWebView/components/Contents/ContentActions.tsx | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cbf7995..ba19b915 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### 🎨 Enhancements +- [#545](https://github.com/estruyf/vscode-front-matter/issues/545): Add smart rename action to sync filename with front matter data - [#937](https://github.com/estruyf/vscode-front-matter/issues/937): Dashboard "Structure" view for documentation sites *WIP* - [#965](https://github.com/estruyf/vscode-front-matter/issues/965): Added SEO support for the keyword in the first paragraph - [#973](https://github.com/estruyf/vscode-front-matter/issues/973): Support for number fields in the snippets diff --git a/package.json b/package.json index 6bc35600..05f7cbb7 100644 --- a/package.json +++ b/package.json @@ -2856,7 +2856,7 @@ ] }, "scripts": { - "dev:ext": "npm run clean && npm run localization:generate && npm-run-all --parallel watch:*", + "dev": "npm run clean && npm run localization:generate && npm-run-all --parallel watch:*", "vscode:prepublish": "npm run clean && npm run localization:generate && npm-run-all --parallel prod:*", "build:ext": "npm run clean && npm-run-all --parallel dev:build:*", "watch:ext": "webpack --mode development --watch --config ./webpack/extension.config.js", diff --git a/src/dashboardWebView/components/Contents/ContentActions.tsx b/src/dashboardWebView/components/Contents/ContentActions.tsx index 7fee588a..3a0b83de 100644 --- a/src/dashboardWebView/components/Contents/ContentActions.tsx +++ b/src/dashboardWebView/components/Contents/ContentActions.tsx @@ -74,12 +74,12 @@ export const ContentActions: React.FunctionComponent = ({ const onRename = React.useCallback((e: React.MouseEvent) => { e.stopPropagation(); messageHandler.send(DashboardMessage.rename, path); - }, [path]) + }, [path]); const onSmartRename = React.useCallback((e: React.MouseEvent) => { e.stopPropagation(); messageHandler.send(DashboardMessage.smartRename, path); - }, [path]) + }, [path]); const onOpenWebsite = React.useCallback((e: React.MouseEvent) => { e.stopPropagation();