@codingame/monaco-vscode-walkthrough-service-override 18.1.1 → 18.1.2
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-walkthrough-service-override",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - walkthrough service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "18.1.
|
|
19
|
-
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "18.1.
|
|
20
|
-
"@codingame/monaco-vscode-924e8f00-6faf-5059-b518-e43427d29ab3-common": "18.1.
|
|
21
|
-
"@codingame/monaco-vscode-93784a59-b4cf-520c-8339-f8104d3a4f3e-common": "18.1.
|
|
22
|
-
"@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "18.1.
|
|
23
|
-
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "18.1.
|
|
24
|
-
"@codingame/monaco-vscode-api": "18.1.
|
|
25
|
-
"@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "18.1.
|
|
26
|
-
"@codingame/monaco-vscode-dcfc2191-2da1-54c7-8fb7-e92c5d11ecef-common": "18.1.
|
|
18
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "18.1.2",
|
|
19
|
+
"@codingame/monaco-vscode-7bbc9e7d-eeae-55fc-8bf9-dc2f66e0dc73-common": "18.1.2",
|
|
20
|
+
"@codingame/monaco-vscode-924e8f00-6faf-5059-b518-e43427d29ab3-common": "18.1.2",
|
|
21
|
+
"@codingame/monaco-vscode-93784a59-b4cf-520c-8339-f8104d3a4f3e-common": "18.1.2",
|
|
22
|
+
"@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common": "18.1.2",
|
|
23
|
+
"@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "18.1.2",
|
|
24
|
+
"@codingame/monaco-vscode-api": "18.1.2",
|
|
25
|
+
"@codingame/monaco-vscode-cf77987b-b1b7-5359-aaf8-a259c63d9f03-common": "18.1.2",
|
|
26
|
+
"@codingame/monaco-vscode-dcfc2191-2da1-54c7-8fb7-e92c5d11ecef-common": "18.1.2",
|
|
27
27
|
"marked": "14.0.0"
|
|
28
28
|
},
|
|
29
29
|
"main": "index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
|
-
import { $, addDisposableListener, clearNode, reset, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { $, addDisposableListener, clearNode, reset, append, getActiveElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { renderFormattedText } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/formattedTextRenderer';
|
|
6
6
|
import { StandardKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/keyboardEvent';
|
|
7
7
|
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
@@ -1736,7 +1736,7 @@ let GettingStartedPage = class GettingStartedPage extends EditorPane {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
focus() {
|
|
1738
1738
|
super.focus();
|
|
1739
|
-
const active = this.container.ownerDocument
|
|
1739
|
+
const active = getActiveElement(this.container.ownerDocument);
|
|
1740
1740
|
let parent = this.container.parentElement;
|
|
1741
1741
|
while (parent && parent !== active) {
|
|
1742
1742
|
parent = parent.parentElement;
|
|
@@ -30,7 +30,7 @@ import { UILabelProvider } from '@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
30
30
|
import { OS, OperatingSystem } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
31
31
|
import { deepClone } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
32
32
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
33
|
-
import { isHTMLElement, isHTMLAnchorElement, isHTMLButtonElement, size, safeInnerHtml, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
33
|
+
import { isHTMLElement, isHTMLAnchorElement, isHTMLButtonElement, size, getActiveElement, safeInnerHtml, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
34
34
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
35
35
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
36
36
|
|
|
@@ -116,7 +116,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
|
|
|
116
116
|
this.content.addEventListener('click', event => {
|
|
117
117
|
for (let node = event.target; node; node = node.parentNode) {
|
|
118
118
|
if (isHTMLAnchorElement(node) && node.href) {
|
|
119
|
-
const baseElement = node.
|
|
119
|
+
const baseElement = node.getRootNode().querySelector('base') || this.window.location;
|
|
120
120
|
if (baseElement && node.href.indexOf(baseElement.href) >= 0 && node.hash) {
|
|
121
121
|
const scrollTarget = this.content.querySelector(node.hash);
|
|
122
122
|
const innerContent = this.content.firstElementChild;
|
|
@@ -183,7 +183,7 @@ let WalkThroughPart = class WalkThroughPart extends EditorPane {
|
|
|
183
183
|
}
|
|
184
184
|
focus() {
|
|
185
185
|
super.focus();
|
|
186
|
-
let active = this.content.ownerDocument
|
|
186
|
+
let active = getActiveElement(this.content.ownerDocument);
|
|
187
187
|
while (active && active !== this.content) {
|
|
188
188
|
active = active.parentElement;
|
|
189
189
|
}
|