Skip to content

Commit

Permalink
remove api docs lsp request
Browse files Browse the repository at this point in the history
This feature caused clangd to crash much quicker. In fact 2 maximum stack size errors are reported in the console when this feature is enabled.

Since api docs population is hacky anyway, it might be worth just leaving this out for now. Might make it just a little bit easier to fix #10
  • Loading branch information
hamer0 committed Sep 14, 2023
1 parent 5ceca75 commit 66f4ab8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/language-server/apidocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ const requestAPI = async (
// params?: ApiDocsFunctionParameter[];
}

return apiDocs;

console.log(`[API] MicroBit`);

// hacky for now. Need to wait for LSP to be ready to go before sending this request. Waits 5 seconds
Expand Down

0 comments on commit 66f4ab8

Please sign in to comment.