@codingame/monaco-vscode-host-service-override 2.2.2 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-host-service-override",
3
- "version": "2.2.2",
3
+ "version": "3.1.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,6 +18,6 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@2.2.2"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@3.1.0"
22
22
  }
23
23
  }
@@ -205,7 +205,7 @@ let BrowserHostService = class BrowserHostService extends Disposable {
205
205
  this.doOpen(undefined, { payload: Array.from(environment.entries()) });
206
206
  }
207
207
  }
208
- if (options?.diffMode && fileOpenables.length === 2) {
208
+ else if (options?.diffMode && fileOpenables.length === 2) {
209
209
  const editors = coalesce(await pathsToEditors(fileOpenables, this.fileService, this.logService));
210
210
  if (editors.length !== 2 || !isResourceEditorInput(editors[0]) || !isResourceEditorInput(editors[1])) {
211
211
  return;