@@ -249,31 +249,13 @@ function updateDatatypeParams(params: SepticCalcParameterInfo[] | undefined) {
249249 description : param . description ,
250250 name : param . name ,
251251 direction : param . direction ,
252- datatype : param . datatype . map ( ( type ) => {
253- return datatypeToObjectName ( type ) ;
254- } ) ,
252+ datatype : param . datatype ,
255253 } ;
256254 } ) ;
257255}
258256
259- const objectNameMap = new Map < string , string > ( [
260- [ "mvr" , "Mvr" ] ,
261- [ "cvr" , "Cvr" ] ,
262- [ "dvr" , "Dvr" ] ,
263- [ "evr" , "Evr" ] ,
264- [ "tvr" , "Tvr" ] ,
265- [ "smpcappl" , "SmpcAppl" ] ,
266- ] ) ;
267-
268257export const VALUE = "Value" ;
269258
270- function datatypeToObjectName ( type : string ) {
271- const objectName = objectNameMap . get ( type ) ;
272- if ( ! objectName ) {
273- return VALUE ;
274- }
275- return objectName ;
276- }
277259
278260function toSymbolKind ( name : string ) {
279261 const nameLower = name . toLowerCase ( ) ;
@@ -356,19 +338,19 @@ class SepticObjectDocumentation implements ISepticObjectDocumentation {
356338 continue ;
357339 } else {
358340 this . attributes . push ( {
359- description : attr . description ,
360- dataType : attr . dataType ,
361- enums : attr . enums ,
362- list : attr . list ,
363- name : attr . name ,
364- tags : attr . tags ,
365- calc : attr . calc ,
366- basename : attr . name ,
367- noCnfg : false ,
368- default : attr . default ,
369- snippet : attr . snippet ,
370- noSnippet : attr . noSnippet ,
371- } ) ;
341+ description : attr . description ,
342+ dataType : attr . dataType ,
343+ enums : attr . enums ,
344+ list : attr . list ,
345+ name : attr . name ,
346+ tags : attr . tags ,
347+ calc : attr . calc ,
348+ basename : attr . name ,
349+ noCnfg : false ,
350+ default : attr . default ,
351+ snippet : attr . snippet ,
352+ noSnippet : attr . noSnippet ,
353+ } ) ;
372354 }
373355 ;
374356 }
0 commit comments