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.
2 parents e08be3c + 10c72f6 commit 1b8f290Copy full SHA for 1b8f290
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