We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentbb4c347 commit8f91f70Copy full SHA for 8f91f70
src/actions/utils/runCommands.ts
@@ -19,7 +19,6 @@ const runCommands = async (commands: string[], send: (action: T.Action) => void)
19
send({type:'COMMAND_FAIL',payload:{process:{ ...process,status:'FAIL'}}})
20
return
21
}
22
-console.log(result.stdout)
23
send({type:'COMMAND_SUCCESS',payload:{process:{ ...process,status:'SUCCESS'}}})
24
25
src/channel/index.ts
@@ -39,7 +39,6 @@ class Channel implements Channel {
39
constactionType:string=typeofaction==='string' ?action :action.type
40
constonError=(error:T.ErrorMessage)=>this.send({type:'ERROR',payload:{ error}})
41
42
-// console.log('EDITOR RECEIVED:', actionType)
43
switch(actionType){
44
case'ENV_GET':
45
this.send({
@@ -139,7 +138,6 @@ class Channel implements Channel {
139
138
140
// send to webview
141
publicsend=async(action:T.Action)=>{
142
-console.log(`EDITOR SEND${action.type}`)
143
// action may be an object.type or plain string
144
145
src/webview/index.ts
@@ -40,7 +40,6 @@ const createReactWebView = ({ extensionPath, workspaceState, workspaceRoot }: Re
workspaceState,
workspaceRoot,
postMessage:(action:Action):Thenable<boolean>=>{
-// console.log(`postMessage ${JSON.stringify(action)}`)
returnpanel.webview.postMessage(action)
},
46
})
src/webview/render.ts
@@ -65,18 +65,16 @@ async function render(panel: vscode.WebviewPanel, rootPath: string) {
65
constcspMeta:HTMLMetaElement=document.createElement('meta')
66
cspMeta.httpEquiv='Content-Security-Policy'
67
cspMeta.content=[
68
-'font-srcvscode-resource://*;',
69
-'img-srcvscode-resource: https:;',
+`font-src${panel.webview.cspSource} http: https: data:;`,
+`img-src${panel.webview.cspSource} https:;`,
70
`script-src${nonces.map(nonce=>`'nonce-${nonce}'`).join(' ')};`,
71
-`style-srcvscode-resource: http:https: data:;`,
+`style-src${panel.webview.cspSource}https:;`,
72
].join(' ')
73
document.head.appendChild(cspMeta)
74
75
// stringify dom
76
consthtml=dom.serialize()
77
78
-console.log(html)
79
-
80
// set view
81
panel.webview.html=html
82
web-app/src/components/Message/index.tsx
@@ -1,5 +1,4 @@
1
import*asReactfrom'react'
2
-import*asTfrom'typings'
3
import{MessageasAlifdMessage}from'@alifd/next'
4
5
interfaceProps{
web-app/src/services/channel/index.ts
@@ -40,8 +40,6 @@ class Channel {
-console.log(`CLIENT RECEIVE:${action.type}`,action)
// messages from core
switch(action.type){
47
case'ENV_LOAD':