Commit Graph

153 Commits

Author SHA1 Message Date
WebFreak001 22f65d51fe Resolve ptr, array & aa in types, add typeOf field
typeOf field is new tab-delimited field in dcd-client output, so you no
longer need to manually guess types / parse code. Calltips still yield
the actual written type, but in case of "auto", the typeOf column may
contain more useful info.
2023-03-16 16:45:25 +01:00
WebFreak001 690d6254db Properly implement pointer types
- special DCD pointer symbols are actually inserted now
- they are implicitly dereferenced (max 1 deref) for member access
- index accessing them yields proper types (one pointer removed)
- they return standard type properties on pointer pointers
2023-03-16 16:45:25 +01:00
WebFreak001 795ea87f80 add missing development files to gitignore 2023-03-16 16:13:06 +01:00
davu 810b77fe06 PR changes round 1 2023-03-16 16:08:23 +01:00
davu 6c3c67fa2f updating dcd tests 2023-03-16 16:08:23 +01:00
davu 434a838d20 Updated for PR 2023-02-25 21:29:39 +01:00
davu de001983c2 Adding alias this to symbol and match algorithm 2023-02-25 21:29:39 +01:00
davu 86cb518b27 added alias this test 2023-02-25 21:29:39 +01:00
davu 086fc5bd73 added integer promotion, implicit upcast 2023-02-21 21:37:00 +01:00
davu cad3f3d747 changing naming to respect .gitignore 2023-02-21 21:37:00 +01:00
davu 66b11109fc updating readme for UFCS 2023-02-21 21:37:00 +01:00
davu 5ff0b74550 adding test for ufcs fundamental types 2023-02-21 21:37:00 +01:00
ryuukk 0f69db00fb
Public import recurse fix (#706)
* Add a 3rd phase to tesolve missing types that were parsed recursively
* store the type name into its own field, so we could resolve templates later

Fixes https://github.com/dlang-community/DCD/issues/678
2023-02-03 10:56:10 +00:00
Crsi 0f68143929
Improve non-linux testing (#698) 2022-12-08 19:41:26 +00:00
WebFreak001 2457f70b8e use `isCallableWithArg` in paren completion
For consistency and to allow future changes to type matching (e.g.
implicit type conversion)
2022-12-07 21:18:52 +01:00
davu 6c3a4d3797 Added paren completion for UFCS 2022-12-07 19:39:23 +01:00
davu 29dba75ce9 UFCS using new completion kind F 2022-10-18 23:31:20 +02:00
davu 642a0e0a14 minor adjustments 2022-10-18 23:31:20 +02:00
davu 52c0298c3a UFSC implementation using functionParameters instead and update tests for UFSC 2022-10-18 23:31:20 +02:00
davu 951870e06f hide private functions 2022-10-18 23:31:20 +02:00
davu 9e60ab8b2c Adding Simple UFCS
Added UFCS navigation

Adding test cases for ufcs

With ufcs update expected test

Updated UFCS with templating support

Removing template function.
2022-10-18 23:31:20 +02:00
WebFreak001 0c7f4a4a56 Integrate dsymbol into DCD
fix #669
2022-10-13 18:18:53 +02:00
Jan Jurzitza 46ea058cfb
fix --localUse off-by-one error (#640) 2021-07-14 18:41:41 +00:00
Hackerpilot fe54fa84cb Test cases for #620 2020-07-25 00:09:42 -07:00
WebFreak001 8c53181ffd add RequestKind.requiresSourceCode, fix #617
this is a or-combined mask of the request kinds which operate on
`request.sourceCode`. Before if a client sent a request without source
code (with empty source) to one of these commands, the server would
crash with an assertion failure, now the server returns an empty
response.
2020-06-19 22:16:46 +02:00
Basile Burg abd29bcb0c fix #600 - Wrong scope for parameter solving in nested funcs 2019-05-12 02:20:04 +02:00
WebFreak001 6a195ea86a make private symbols not show up in auto complete 2019-05-12 00:44:15 +02:00
Basile-z ba60664f2f
update completions of `pragma` and `__traits` (#597) 2019-04-22 17:46:40 +02:00
Basile Burg 26b1be49d6 Add test case for empty modules
fix was dlang-community/dsymbol#117
2019-03-30 17:28:35 +01:00
Basile Burg 33a673836e update dsymbol to fix #592, and to also to fix #593 2019-03-28 13:17:36 +01:00
Basile-z cb0e49bc36 fix #584 - crash when completing and if the previous expression is negated (#586)
fix #584 - crash when completing and if the previous expression is negated
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
2019-02-18 06:41:21 +01:00
BBasile 144cc4ed41 allow completion of tempalte parameter standard properties (#575)
allow completion of template parameter standard properties
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2019-01-13 09:44:25 +01:00
Vladimir Panteleev fc061b148b Add lazy import regression test (dlang-community/dsymbol#114) (#574)
Add lazy import regression test (dlang-community/dsymbol#114)
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2019-01-08 03:12:12 +01:00
BBasile 216275ead9 fix wrong completion for if variable initialized with an array (#565)
fix wrong completion for if variable initialized with an array
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-12-31 00:11:44 +01:00
Jan Jurzitza 6d72497a09 Fix file import test bleeding into other tests (#563)
Fix file import test bleeding into other tests
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-12-30 03:32:29 +01:00
Jan Jurzitza 6ae1b6f890 Extended mode ditto comment support (#562)
Extended mode ditto comment support
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-12-29 20:38:38 +01:00
Basile Burg 670c05bf37 fix #558 - regression in import completion due to FQN autocomplete 2018-12-29 16:40:24 +01:00
Basile Burg 292f3bae06 fix issue 557 - Module name completion should not complete anything 2018-12-29 14:29:37 +01:00
BBasile 09ba8f8787 add support for the Module Scope Operator, close #548 (#550)
add support for the Module Scope Operator, close #548
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-12-24 14:11:05 +01:00
Basile Burg 32865f8617 fix #551 - Add completions for template type parameter with colon type 2018-12-20 14:53:59 +01:00
Basile Burg 77347c10a8 fix #489 - Abnormal completion list for core.thread.Thread 2018-11-09 13:09:41 +01:00
Basile Burg ff3c7d212b Add support for auto anon class completion, close #532 2018-09-16 20:07:30 +02:00
Basile Burg 932adb3313 update constants 2018-09-16 12:06:11 +02:00
Laurent Tréguier 436778fd1b fix #521 - Add a request allowing to remove a set of import path (#522)
fix #521 - Add a request allowing to remove a set of import path
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-08-10 09:15:07 +02:00
Basile Burg 0e53e96c4e fix #510 - mixin template and alias 2018-07-21 11:40:43 +02:00
The Dlang Bot e5dc9960a3
Merge pull request #508 from BBasile/issue-504
fix #504 - Completion for partial identifier matching to a basic type doesn't work
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-07-11 14:09:18 +02:00
Basile Burg 5398d88114 fix #504 - Completion for partial identifier matching to a basic type doesn't work 2018-07-11 13:59:22 +02:00
WebFreak001 80f5bf1495 Fix #506 2018-07-10 16:03:04 +02:00
Basile Burg c55131d07c fix #495 - Completion no working on variable named `body` 2018-06-14 15:16:05 +02:00
Brian Schott 82d5946ef5
Merge pull request #494 from BBasile/issue-493
fix #493 - regression, crash when trying to get completion for select…
2018-06-11 12:27:33 -07:00