File tree Expand file tree Collapse file tree 6 files changed +14
-2
lines changed Expand file tree Collapse file tree 6 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -647,6 +647,8 @@ export abstract class WidgetAdapter<T extends IDocumentWidget> {
647
647
connection,
648
648
virtual_document
649
649
} ;
650
+ } else {
651
+ return undefined ;
650
652
}
651
653
}
652
654
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ export class EditorAdapter<T extends IVirtualEditor<IEditor>> {
88
88
this . console . error ( e ) ;
89
89
}
90
90
this . invalidateLastChange ( ) ;
91
+ return undefined ;
91
92
}
92
93
93
94
public invalidateLastChange ( ) {
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ class DiagnosticsPanel {
106
106
return column ;
107
107
}
108
108
}
109
+ return undefined ;
109
110
} ;
110
111
111
112
/** Columns Menu **/
Original file line number Diff line number Diff line change @@ -494,6 +494,7 @@ export class HoverCM extends CodeMirrorIntegration {
494
494
) {
495
495
this . console . warn ( e ) ;
496
496
}
497
+ return undefined ;
497
498
}
498
499
} ;
499
500
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export class CMJumpToDefinition extends CodeMirrorIntegration {
94
94
95
95
get_uri_and_range ( location_or_locations : AnyLocation ) {
96
96
if ( location_or_locations == null ) {
97
- return ;
97
+ return undefined ;
98
98
}
99
99
// some language servers appear to return a single object
100
100
const locations = Array . isArray ( location_or_locations )
@@ -105,7 +105,7 @@ export class CMJumpToDefinition extends CodeMirrorIntegration {
105
105
// (like when there are multiple definitions or usages)
106
106
// could use the showHints() or completion frontend as a reference
107
107
if ( locations . length === 0 ) {
108
- return ;
108
+ return undefined ;
109
109
}
110
110
111
111
this . console . log (
@@ -125,6 +125,12 @@ export class CMJumpToDefinition extends CodeMirrorIntegration {
125
125
uri : location_or_link . uri ,
126
126
range : location_or_link . range
127
127
} ;
128
+ } else {
129
+ this . console . warn (
130
+ 'Returned jump location is incorrect (no uri or targetUri):' ,
131
+ location_or_link
132
+ ) ;
133
+ return undefined ;
128
134
}
129
135
}
130
136
Original file line number Diff line number Diff line change 21
21
"strictBindCallApply" : true ,
22
22
"allowUnusedLabels" : false ,
23
23
"noFallthroughCasesInSwitch" : true ,
24
+ "noImplicitReturns" : true ,
24
25
"types" : []
25
26
}
26
27
}
You can’t perform that action at this time.
0 commit comments