Thanks to visit codestin.com Credit goes to github.com
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 e08be3c commit 10c72f6Copy full SHA for 10c72f6
web-app/src/index.tsx
@@ -1,5 +1,9 @@
1
import * as React from 'react'
2
import ReactDOM from 'react-dom'
3
+
4
+// mock values for non-extension web use
5
+import './mock'
6
7
import App from './App'
8
9
// init error logging
web-app/src/mock/index.ts
@@ -0,0 +1,9 @@
+// @ts-ignore
+if (!global.acquireVsCodeApi) {
+ // @ts-ignore
+ global.acquireVsCodeApi = () => ({
+ postMessage(event: string) {
+ console.log('postMessage', event)
+ },
+ })
+}
0 commit comments