We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9e48c commit 2243ca8Copy full SHA for 2243ca8
src/views/cytoscape/media/explain.js
@@ -3,6 +3,8 @@
3
// const vscode = acquireVsCodeApi();
4
console.log("IN EXPLAIN.JS!!!")
5
// @ts-ignore
6
+const vscode = window.acquireVsCodeApi()
7
+// @ts-ignore
8
const cy = cytoscape({
9
container: document.getElementById("diagramContainer"),
10
@@ -46,10 +48,11 @@ const cy = cytoscape({
46
48
// Add click event to show alert for nodes
47
49
cy.on("tap", "node", function (evt) {
50
const id = evt.target.id();
- // vscode.postMessage({
- // command: 'selected',
51
- // nodeId: id
52
- // });
+ // @ts-ignore
+ vscode.postMessage({
53
+ command: 'selected',
54
+ nodeId: id
55
+ });
56
});
57
58
const getCodiconClass = (label) => {
0 commit comments