Closed andyleejordan closed 3 months ago
This was prompted by a) being annoyed at having to keep doing this and b) the changes in https://github.com/microsoft/vscode/commit/d60e424ff398a41f5e65827ec6e06b235273e019 being much more difficult to incorporate except by doing it this way! /cc @Tyriar
Instead of having to maintain an edited copy (which was really annoying) I stubbed out
PSConsoleHostReadLine
to do what's expected. So now we can just use the existing shell integration script directly!Since we can't reliably find the script using
code --locate-shell-integration-path pwsh
we now rely on it being sent by the client on initialization. Its presence implies the feature is on.This is pretty VS Code specific, but not necessarily so.