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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
eea4010
Use github.com/arduino/go-properties-orderedmap for handling properties
cmaglie Nov 6, 2020
e9ee267
When logging command output add also the command line args
cmaglie Nov 6, 2020
3ec5d2a
updated go modules
cmaglie Nov 8, 2020
a8d0ddc
Some refactoring wrt logging and debugging
cmaglie Nov 8, 2020
12a1bf6
Create a source mapper object and factored textutils subroutine
cmaglie Nov 9, 2020
a03fc20
Output stackstrace in log in case of crash
cmaglie Nov 9, 2020
09d329d
Consume stderr if no log file is specified
cmaglie Nov 19, 2020
9b0a39b
Converted method-switch into type-switch
cmaglie Nov 19, 2020
ee6b06e
InoMapper now maps all .ino files in a project
cmaglie Nov 19, 2020
a01cf52
slightly refactored syncer
cmaglie Nov 20, 2020
a9580aa
Big refactoring in LSP handling
cmaglie Nov 23, 2020
dbbc34f
Accept all compiler for querying drivers (g++ and gcc for example)
cmaglie Nov 23, 2020
f070822
Implemented 'completion' message
cmaglie Nov 23, 2020
84b85b7
Made a more clean logging
cmaglie Nov 24, 2020
436052b
Implemented textDocument/publishDiagnostics
cmaglie Nov 24, 2020
ed22a4b
Added implementation for 'textDocument/hover' message
cmaglie Nov 24, 2020
0d5f610
Slightly improved logging
cmaglie Nov 24, 2020
5b8ca71
Forked https://github.com/sourcegraph/go-lsp
cmaglie Nov 24, 2020
049d19f
Moved URI helper in lsp module
cmaglie Nov 25, 2020
23b6d9c
slightly improved logging
cmaglie Nov 25, 2020
d07b2ab
use lsp helper in sourceMapper
cmaglie Nov 25, 2020
4401a25
sketchMapper: added info about preprocessed lines
cmaglie Nov 25, 2020
5f19408
Added methods to apply text-changes in sketch mapper
cmaglie Nov 26, 2020
8d099f9
track version in tracked files
cmaglie Nov 26, 2020
039617b
first implementation of textDocument/didChange
cmaglie Nov 26, 2020
b27fb0f
improved logging
cmaglie Nov 26, 2020
736739a
implement cleaning of diagnostics
cmaglie Nov 27, 2020
474f2e7
inlined Hover response handler
cmaglie Nov 29, 2020
bf332d7
let's panic on un-handled functions
cmaglie Nov 29, 2020
b675233
Log by redirecting stderr, this helps to log panics in goroutines
cmaglie Nov 29, 2020
e227159
inline completionList
cmaglie Nov 29, 2020
57a46b3
partial implementation of codeAction
cmaglie Nov 30, 2020
91241a3
Implemented textDocument/documentSymbol
cmaglie Dec 1, 2020
749ab91
Append to logs instead of overwriting
cmaglie Dec 1, 2020
f9b9ad6
Added lsp protocol decoding tests
cmaglie Dec 1, 2020
aac7cdc
re-enable global message handling synchronization
cmaglie Dec 2, 2020
7943ae1
partial implementation of documentSymbol
cmaglie Dec 2, 2020
8a67a18
didChange now keeps track of changes in the text
cmaglie Dec 2, 2020
c3eac7a
Added InitializedParams lsp structure
cmaglie Dec 2, 2020
943cfa8
removed wrong synchronization directives
cmaglie Dec 2, 2020
556b426
removed unused field
cmaglie Dec 3, 2020
10355fa
Fixed content tracking version mismatch warning
cmaglie Dec 3, 2020
fdd4a7f
fixed dirty change detection
cmaglie Dec 3, 2020
f8b79ea
implemented documentSymbol caching
cmaglie Dec 3, 2020
80eb6f3
removed no more used functions
cmaglie Dec 5, 2020
ff6c799
fixed case in 'omitempty' directive
cmaglie Dec 5, 2020
804136d
Implemented sketch rebuild
cmaglie Dec 5, 2020
611bf6b
Updated go-paths-helper
cmaglie Dec 7, 2020
4590458
Added some Commands.Arguments
cmaglie Dec 7, 2020
54bfcf1
re-preprocess sketch if there are changes in the c++ functions outline
cmaglie Dec 9, 2020
da6892e
Fixed doc sync infinite loop bug
cmaglie Dec 13, 2020
476eabc
Added String method to DocumentURI
cmaglie Dec 13, 2020
2836832
renamed InoHandler.trackedFiles -> docs
cmaglie Dec 13, 2020
414f11b
correctly handle diagnostics update
cmaglie Dec 13, 2020
9cd5943
updated arduino-cli version
cmaglie Dec 15, 2020
91d2376
Fixed typo
cmaglie Dec 15, 2020
c51689a
Added .Ext() method on DocumentURI
cmaglie Dec 16, 2020
d9eeb0c
didOpen now handles .cpp / .h files too
cmaglie Dec 16, 2020
e5c82d6
Fixed publishDiagnostics for .cpp files
cmaglie Dec 16, 2020
796a463
Fixed text synchronization issues
cmaglie Dec 16, 2020
c2c6d96
Improved panic log handling
cmaglie Dec 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ module github.com/bcmi-labs/arduino-language-server
go 1.12

require (
github.com/gorilla/websocket v1.4.0 // indirect
github.com/pkg/errors v0.8.1
github.com/sourcegraph/go-lsp v0.0.0-20181119182933-0c7d621186c1
github.com/sourcegraph/jsonrpc2 v0.0.0-20190106185902-35a74f039c6a
github.com/arduino/arduino-cli v0.0.0-20201215104024-6a177ebf56f2
github.com/arduino/go-paths-helper v1.4.0
github.com/pkg/errors v0.9.1
github.com/sourcegraph/jsonrpc2 v0.0.0-20200429184054-15c2290dcb37
github.com/stretchr/testify v1.6.1
)
394 changes: 388 additions & 6 deletions go.sum

Large diffs are not rendered by default.

Loading