]> git.lizzy.rs Git - rust.git/commit
editors/code: fix nixos detection
authorVladimir Serov <me@cab404.ru>
Sat, 12 Mar 2022 21:26:36 +0000 (00:26 +0300)
committerVladimir Serov <me@cab404.ru>
Sat, 12 Mar 2022 21:38:41 +0000 (00:38 +0300)
commitce4b61003d8eb5383c4e759d919cdc72a137bc11
tree4290e85d509a3f2499c477369121c85ec80a8032
parent5fcf979f8a09e6504bbe540cbff6d640b959935c
editors/code: fix nixos detection

Problem: NixOS started using quotes around it's id field in /etc/os-release
Solution: Parially parsing os-release, and detecting, whether `nixos` appears anywhere in "ID=" field\
See https://github.com/rust-analyzer/rust-analyzer/issues/11695
Closes #11695
editors/code/src/main.ts