Skip to content

Big refactoring #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 61 commits into from
Dec 17, 2020
Merged

Big refactoring #38

merged 61 commits into from
Dec 17, 2020

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Dec 17, 2020

No description provided.

cmaglie and others added 30 commits November 6, 2020 21:21
- clangd launcher has been moved into main module, removing an unneded
indirection.
- streams management functions now resides in their own module.
- file logging has been downgraded from an object to a function
This is actually much more like a rewriting of the engine than a refactoring.
Really too much stuff going on to keep track of them cleanly, a
(possibly) short recap may be:

- before starting clangd we make a round of arduino-preprocessing
- using the new arduino-cli --only-compilation-database flag to generate
  both compiler flags, preprocessed sketch, etc.
- multiple .ino files are now mapped into a single .cpp file
- added support for clangd -query-driver flag to query cross-compiler
  native libraries and includes directories
- using type-switch to handle messages in-out from IDE

For now the LSP command partially implemented are:

  'initialize'
  'textDocument/didOpen'
@cmaglie cmaglie merged commit 1daeb70 into master Dec 17, 2020
@cmaglie cmaglie deleted the big-refactoring branch December 17, 2020 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant