Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf0ad9b

Browse files
committed
clenaup typings
1 parentb6ec3e8 commitbf0ad9b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎src/editor/ReactWebView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class ReactWebView {
2121
privatepanel:vscode.WebviewPanel
2222
privateextensionPath:string
2323
privatedisposables:vscode.Disposable[]=[]
24-
privateonReceive:any// TODO: properly type
2524

2625
publicconstructor(extensionPath:string){
2726
this.extensionPath=extensionPath
@@ -42,6 +41,7 @@ class ReactWebView {
4241
if(action==='WEBVIEW_LOADED'){
4342
this.loaded=true
4443
}else{
44+
console.log('onReceive',action)
4545
vscode.commands.executeCommand('coderoad.receive_action',action)
4646
}
4747
}
@@ -56,15 +56,15 @@ class ReactWebView {
5656
}
5757

5858
// prevents new panels from going ontop of coderoad panel
59-
vscode.window.onDidChangeActiveTextEditor((textEditor)=>{
59+
vscode.window.onDidChangeActiveTextEditor((textEditor?:vscode.TextEditor)=>{
6060
console.log('onDidChangeActiveTextEditor')
6161
console.log(textEditor)
6262
if(!textEditor||textEditor.viewColumn!==vscode.ViewColumn.Two){
6363
updateWindows()
6464
}
6565
})
6666
// // prevents moving coderoad panel on top of left panel
67-
vscode.window.onDidChangeVisibleTextEditors((textEditor)=>{
67+
vscode.window.onDidChangeVisibleTextEditors((textEditor:vscode.TextEditor[])=>{
6868
console.log('onDidChangeVisibleTextEditors')
6969
updateWindows()
7070
})

‎src/editor/commands/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export const createCommands = ({vscodeExt, machine, git}: CreateCommandProps) =>
135135
},
136136
[COMMANDS.RECEIVE_ACTION]:(action:string|CR.Action)=>{
137137
// send received actions from web-app into state machine
138+
console.log('receive action',action)
138139
machine.send(action)
139140
},
140141
[COMMANDS.RUN_TEST]:()=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp