Skip to content

Add copy URL option in SQL Build list#71

Merged
alex-bochkov merged 2 commits intomainfrom
codex/add-copy-url-functionality-in-sql-build-window
Feb 26, 2026
Merged

Add copy URL option in SQL Build list#71
alex-bochkov merged 2 commits intomainfrom
codex/add-copy-url-functionality-in-sql-build-window

Conversation

@alex-bochkov
Copy link
Copy Markdown
Contributor

Motivation

  • Provide a way for users to copy the "URL" value from the SQL Build window list (via context menu or similar) without opening the link.

Description

  • Added NormalizeUrl(string) to clean HYPERLINK(...) formatted values in one place and reused it for link open and export paths.
  • Updated CreateHyperlink(string, double) to use the normalized URL and attach a ContextMenu with a MenuItem labeled Copy URL that calls CopyUrlToClipboard(string).
  • Implemented CopyUrlToClipboard(string) which copies the URL to the clipboard and shows a warning message if no URL is present.
  • Switched OpenUrl(string) and the Copy as TSQL export code to call NormalizeUrl(...) so opened and exported URLs are consistent.

Testing

  • Ran dotnet build AxialSqlTools/AxialSqlTools.sln -c Release but the build could not be executed because dotnet is not installed in this environment (build not validated).
  • Performed git operations to add and commit the change which succeeded and left a clean working tree after commit.

Codex Task

@alex-bochkov alex-bochkov merged commit 92d319a into main Feb 26, 2026
@alex-bochkov alex-bochkov deleted the codex/add-copy-url-functionality-in-sql-build-window branch February 26, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant