Task Summary
Remove the unused hocon-parser integration from pyright-language-service. It is dead code: hoconParser was used in main.ts to parse the Amber HOCON config, but that call was removed in #3150 (when the language server became a standalone microservice) and the leftover import was removed in #3415. The dependency, the type stub, and a sibling hoconjs dependency were never cleaned up.
This came up in #5435, which tried to improve the stub's return type. Since nothing uses it, removing it is the better change.
What to do:
Acceptance criteria:
Pointers (where it used to live):
Task Type
Task Summary
Remove the unused
hocon-parserintegration frompyright-language-service. It is dead code:hoconParserwas used inmain.tsto parse the Amber HOCON config, but that call was removed in #3150 (when the language server became a standalone microservice) and the leftover import was removed in #3415. The dependency, the type stub, and a siblinghoconjsdependency were never cleaned up.This came up in #5435, which tried to improve the stub's return type. Since nothing uses it, removing it is the better change.
What to do:
pyright-language-service/src/types/hocon-parser.d.tshocon-parser(line 9) andhoconjs(line 10) frompyright-language-service/package.jsonyarn installinpyright-language-service/to updateyarn.lockAcceptance criteria:
grep -rn "hocon" pyright-language-service/srcreturns nothingyarn build(or the existing TypeScript build) inpyright-language-service/still passesPointers (where it used to live):
core/pyright-language-server/src/main.ts)Task Type