File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default [
9
9
{
10
10
dir : "dist" ,
11
11
format : "cjs" ,
12
- sourcemap : true ,
12
+ sourcemap : process . env . NODE_ENV === "production" ? true : "inline" ,
13
13
} ,
14
14
] ,
15
15
// loaded externally
Original file line number Diff line number Diff line change @@ -220,7 +220,8 @@ export class SignatureHelpManager {
220
220
let doc = ""
221
221
if ( parameter ) {
222
222
let parameterDocumentation = ""
223
- if ( parameter . documentation === undefined ) {
223
+ // TODO documentation can be null. Update the types!
224
+ if ( parameter . documentation === undefined || parameter . documentation === null ) {
224
225
// parameterDocumentation = ""
225
226
} else if ( typeof parameter . documentation === "string" ) {
226
227
parameterDocumentation = parameter . documentation
@@ -231,7 +232,7 @@ export class SignatureHelpManager {
231
232
doc = `<b>${ parameter . label } </b> ${ parameterDocumentation } `
232
233
} else if ( signature . documentation ) {
233
234
let signatureDocumentation = ""
234
- if ( signature . documentation === undefined ) {
235
+ if ( signature . documentation === undefined || signature . documentation === null ) {
235
236
// signatureDocumentation = ""
236
237
} else if ( typeof signature . documentation === "string" ) {
237
238
signatureDocumentation = signature . documentation
You can’t perform that action at this time.
0 commit comments