Make default text editor replace existing editors for resource (#112848)
* Make default text editor replace existing editors for resource Fixes #111474 This ports the logic that we previouly had for custom editors to the generic open with flow: https://github.com/microsoft/vscode/blob/f0bb23ca02f320816219017234e412caa425851e/src%2Fvs%2Fworkbench%2Fcontrib%2FcustomEditor%2Fbrowser%2FcustomEditors.ts#L281 * Add a new `getEditorsForResource` helper method to editor service This adds a `IEditorService.getEditorsForResource` method that returns all editors associated with a given resource. I've adopted this for custom editors and notebooks * Making suggested changes * Add unit tests for findEditors
Showing
想要评论请 注册 或 登录