You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
El fin de semana en la hackathon me preguntaron si la búsqueda de las definitions las podían implementar en LSP-IDE o wollok-ts y fui víctima de mi propia decisión, aunque a mi favor todavía faltaba mergear el refactor que migró el archivo definitions.ts a wollok-ts.
Ahora quedó
exportconstgetDefinition=(environment: Environment)=>(node: Node): Node[]=>{try{// **** TODO: migrate to wollok-tsif(node.is(Send)){constgetDefinitionFromSyntheticMethod=(method: Method)=>{returnmethod.parent.allFields.find((field)=>field.name===method.name&&field.isProperty)}constdefinitions=sendDefinitions(environment)(node)returndefinitions.map((method: Method)=>method.isSynthetic ? getDefinitionFromSyntheticMethod(method) : method)}// *** FIN TODO: migrate to wollok-tsreturngetNodeDefinition(environment)(node)}catch(error){logger.error(`✘ Error in getDefinition: ${error}`,error)return[node]}}
dentro del archivo packages/server/src/functionalities/definition.ts. Lo que hay que hacer es mover todo ese if a wollok-ts: src/helpers.ts
El fin de semana en la hackathon me preguntaron si la búsqueda de las definitions las podían implementar en LSP-IDE o wollok-ts y fui víctima de mi propia decisión, aunque a mi favor todavía faltaba mergear el refactor que migró el archivo
definitions.ts
a wollok-ts.Ahora quedó
dentro del archivo
packages/server/src/functionalities/definition.ts
. Lo que hay que hacer es mover todo ese if a wollok-ts:src/helpers.ts
The text was updated successfully, but these errors were encountered: