Needed to rename a test fixture in a #Python file, and find/replace wasn't up for the job. So I decided to give #VSCode a go:
I started by pressing Ctrl+F2, for "Change All Occurrences". I think that is basically find/replace, and hence didn't do what I wanted.
Instead, I installed the recommended Python extension, and pressed F2 for "Rename Symbol". That claims to have only made one change, and the references to the function are still using the old name.
So, consider me confused. I'm using #pytest, whereby the test fixtures are referenced as function arguments rather than being called directly. Maybe that's what VS Code is struggling with? Either way, I've now spent more time on this than just manually editing the text.
I've been messing with VS Code for a few days now (despite being an MS hater), and it seems quite good; "all" of my friends use it, and SublimeText is sort of feeling abandoned these days.
One thing that's bugging me, and I can't figure out how to fix it, is that every time the window loses focus, something is reformatting my text. Type "something " with a space, switch to check info, switch back and the space is gone. 🤷
OMG. Great. You get to save the file once before #VSCode shits itself and you have restart VSCode for it to reconnect to the remote connection. This editor blows, man. Sorry for all the VSCode lovers out there.
VSCode seems to be the answer if the question was "What if we took a GUI, removed everything that makes a GUI useful, and replaced it with half working CLI?"
#VisualStudioCode now has a multi-file diff view. Just click the "View Changes" button in the Source Control pane instead of clicking on each individual file 😎 An experience more like viewing a PR on GitHub. #VSCode#code
The same release added#GitHub registry support and retained separate #Azure support. This essay from last year about #VSCode as an onramp to Microsoft lock-in is looking more and more accurate: https://ghuntley.com/fracture/
Whats wrong with the internet? I just need a editor or #IDE that I can use for some PHP and HTML editing and possibility to be extended in the future (e.g. Python).
But the result pages are flooded with "X best Y, you wont miss!" stuff. The number of Y seems to be a real thing, always trying to convince you to open it. Almost every search has crap results like that.
Maybe you know, what I'm searching for my new #LinuxMint environment? #VisualStudioCode is not a real option to me
(see history)
Roughly 2 weeks ago Google patched a critical vulnerability, CVE-2023-4863, that was being exploited in the wild. The broad impact of the root cause of the vuln and the fact that it will have a long tail of unpatched software has been poorly communicated. You can read more in @dangoodin 's excellent article on Ars Technica.
As pointed out in the article above, Electron is based on Chromium and is impacted. Electron is bundled in a ton of apps that people might overlook.
I threw together the following shell command to help macOS audit which versions of Electron apps are installed.
find /Applications -type f -name "*Electron Framework*" -exec <br></br> sh -c "echo "{}" && strings "{}" | grep '^Chrome/[0-9.]* Electron/[0-9]' | head -n1 && echo " ;<br></br>
When run, you should see something similar to the following:
/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework<br></br>Chrome/114.0.5735.289 Electron/25.8.1<br></br><br></br>/Applications/Slack.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework<br></br>Chrome/116.0.5845.188 Electron/26.2.1<br></br>
I see that Microsoft also uses Electron 19.1.8 in #Skype! (Seems like there might be a vector to attack that, somehow, since one can send messages to another user?) #VisualStudioCode is vulnerable with 22.3.14
Contrary to what I see in the release notes, my updated #Obsidian is on 25.8.0 (not .1) #RStudio has 25.5.0
Hey @astro, I tried running a brand new Astro project with #npm but there seems to be an issue when installing the dependencies?
When running "npm run dev" it cannot find the "astro" command. When installing it with #yarn everything works fine and as expected (no error during dependency install). 🤷♂️
@astro Also #prettier doesn't recognize Astro files anymore when using #VisualStudioCode? Tested it with a version 2 Astro project and it works as expected...