Last active
November 30, 2019 18:14
-
-
Save ivan/489d913d02324d71061a3c4e818ed3ec to your computer and use it in GitHub Desktop.
nixpkgs vscodium: don't underline detected links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From f6ec720c11cc4e34c02af85769eb36ea8bc59321 Mon Sep 17 00:00:00 2001 | |
From: Ivan Kozik <ivan@ludios.org> | |
Date: Tue, 26 Nov 2019 13:15:21 +0000 | |
Subject: [PATCH] vscodium, vscode: patch to avoid underlining links | |
--- | |
pkgs/applications/editors/vscode/generic.nix | 13 +++++++++++++ | |
1 file changed, 13 insertions(+) | |
diff --git a/pkgs/applications/editors/vscode/generic.nix b/pkgs/applications/editors/vscode/generic.nix | |
index 74b1eaf4009..1fef570ae77 100644 | |
--- a/pkgs/applications/editors/vscode/generic.nix | |
+++ b/pkgs/applications/editors/vscode/generic.nix | |
@@ -77,6 +77,19 @@ in | |
dontBuild = true; | |
dontConfigure = true; | |
+ postPatch = '' | |
+ # Don't underline detected links in editor windows | |
+ # | |
+ # The underline is especially annoying if you have reduced line height, | |
+ # which causes the link underline to extend down into the next line. | |
+ substituteInPlace ./resources/app/out/vs/workbench/workbench.desktop.main.css \ | |
+ --replace ".monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}" "" | |
+ | |
+ # Don't complain about corruption now that we've "corrupted" it above | |
+ substituteInPlace ./resources/app/out/vs/workbench/workbench.desktop.main.js \ | |
+ --replace "isPure:t===i" "isPure:true" | |
+ ''; | |
+ | |
installPhase = | |
if system == "x86_64-darwin" then '' | |
mkdir -p $out/lib/vscode $out/bin | |
-- | |
2.23.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment