From e985ab0ee71a71d9be14ea157b3aebd8849c6a4f Mon Sep 17 00:00:00 2001 From: Fernando Dodino Date: Thu, 26 Dec 2024 20:12:56 -0300 Subject: [PATCH] Fix CI --- package.json | 2 +- .../server/src/functionalities/autocomplete/node-completion.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8350151..dbc6ff7 100644 --- a/package.json +++ b/package.json @@ -358,7 +358,7 @@ "lint:fix": "cd client && eslint . --fix && cd ../server && eslint . --fix && cd ..", "test": "yarn compile-tests && yarn lint && yarn test:e2e && yarn test:unit", "test:e2e": "vscode-test", - "test:unit": "cd client && yarn run test:highlighter && cd .. && yarn workspaces foreach -Rpt --from '{wollok-lsp-ide-server,wollok-debug-adapter}' run test", + "test:unit": "cd packages/client && yarn run test:highlighter && cd .. && yarn workspaces foreach -Rpt --from '{wollok-lsp-ide-server,wollok-debug-adapter}' run test", "nyc": "nyc", "build-coverage-report": "rimraf coverage-total && cpy --flat ./coverage-e2e/coverage-final.json ./coverage-total --rename=coverage-e2e.json && cpy --flat ./coverage-unit/coverage-final.json ./coverage-total --rename=coverage-unit.json && nyc merge ./coverage-total ./coverage-total/coverage.json", "coverage": "yarn cover:unit && yarn cover:e2e", diff --git a/packages/server/src/functionalities/autocomplete/node-completion.ts b/packages/server/src/functionalities/autocomplete/node-completion.ts index 9c2be6d..fc78001 100644 --- a/packages/server/src/functionalities/autocomplete/node-completion.ts +++ b/packages/server/src/functionalities/autocomplete/node-completion.ts @@ -22,7 +22,7 @@ export const completionsForNode = (node: Node): CompletionItem[] => { ) } catch (error) { logger.error(`✘ Completions for node ${node.kind} (${node.sourceMap} - ${node.sourceFileName}) failed: ${error}`, error) - return [] // completeForParent(node) + return completeForParent(node) } }