@codingame/monaco-vscode-editor-service-override 5.0.1 → 5.1.1
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 +2 -2
- package/tools/editor.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-editor-service-override",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@5.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@5.1.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/tools/editor.js
CHANGED
|
@@ -500,7 +500,7 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
|
|
|
500
500
|
this._onDidChangeActiveGroup.fire(this.activeGroup);
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
|
-
const
|
|
503
|
+
const removeActiveGroup = (editor) => {
|
|
504
504
|
if (!emptyDelegate && this.activeGroupOverride === this.additionalGroups.find(group => group.editor === editor)) {
|
|
505
505
|
updateActiveGroup(undefined);
|
|
506
506
|
}
|
|
@@ -515,11 +515,11 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
|
|
|
515
515
|
window.clearTimeout(timeout);
|
|
516
516
|
timeout = window.setTimeout(() => {
|
|
517
517
|
timeout = undefined;
|
|
518
|
-
|
|
518
|
+
removeActiveGroup(editor);
|
|
519
519
|
}, 100);
|
|
520
520
|
};
|
|
521
521
|
editor.onDidDispose(() => {
|
|
522
|
-
|
|
522
|
+
removeActiveGroup(editor);
|
|
523
523
|
});
|
|
524
524
|
editor.onDidFocusEditorText(onEditorFocused);
|
|
525
525
|
editor.onDidFocusEditorWidget(onEditorFocused);
|