Skip to content

VSCE: Ensure resources from previous instance are disposed on instance change

Created by: tjkandala

When a VS Code extension user changes their Sourcegraph instance URL, dispose all resources associated with that instance to prevent sending repository information to the wrong instance. This is an extra precaution on top of URL validation (e.g. is host in file URI same as current instance)