Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Issue 402723003: first cut simple code completion results (Closed)

Created:
6 years, 5 months ago by danrubel
Modified:
6 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

first cut simple code completion results - not all CompletionSuggestions implemented yet - results valid in only a few situations - more to come BUG= R=brianwilkerson@google.com, scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=38347

Patch Set 1 #

Total comments: 18

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -14 lines) Patch
M pkg/analysis_server/lib/src/constants.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/domain_completion.dart View 1 3 chunks +76 lines, -8 lines 0 comments Download
A pkg/analysis_server/test/completion_test.dart View 1 1 chunk +101 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/mocks.dart View 1 chunk +10 lines, -6 lines 0 comments Download
M pkg/analysis_server/test/search/abstract_search_domain.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analysis_server/test/test_all.dart View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
danrubel
Incomplete implementation, but want to land something simple on which I can further implement.
6 years, 5 months ago (2014-07-17 19:57:36 UTC) #1
scheglov
lgtm https://codereview.chromium.org/402723003/diff/1/pkg/analysis_server/lib/src/constants.dart File pkg/analysis_server/lib/src/constants.dart (right): https://codereview.chromium.org/402723003/diff/1/pkg/analysis_server/lib/src/constants.dart#newcode85 pkg/analysis_server/lib/src/constants.dart:85: const String COMPLETION = 'completion'; It should be ...
6 years, 5 months ago (2014-07-17 20:40:00 UTC) #2
Brian Wilkerson
LGTM
6 years, 5 months ago (2014-07-17 20:41:52 UTC) #3
danrubel
https://codereview.chromium.org/402723003/diff/1/pkg/analysis_server/lib/src/constants.dart File pkg/analysis_server/lib/src/constants.dart (right): https://codereview.chromium.org/402723003/diff/1/pkg/analysis_server/lib/src/constants.dart#newcode85 pkg/analysis_server/lib/src/constants.dart:85: const String COMPLETION = 'completion'; On 2014/07/17 20:39:59, scheglov ...
6 years, 5 months ago (2014-07-17 21:01:14 UTC) #4
scheglov
LGTM https://codereview.chromium.org/402723003/diff/1/pkg/analysis_server/lib/src/domain_completion.dart File pkg/analysis_server/lib/src/domain_completion.dart (right): https://codereview.chromium.org/402723003/diff/1/pkg/analysis_server/lib/src/domain_completion.dart#newcode93 pkg/analysis_server/lib/src/domain_completion.dart:93: var future = searchEngine.searchTopLevelDeclarations(''); On 2014/07/17 21:01:14, danrubel ...
6 years, 5 months ago (2014-07-17 21:09:32 UTC) #5
danrubel
Committed patchset #3 manually as r38347 (presubmit successful).
6 years, 5 months ago (2014-07-17 21:11:44 UTC) #6
danrubel
6 years, 5 months ago (2014-07-17 21:38:45 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/402723003/diff/20001/pkg/analysis_server/test...
File pkg/analysis_server/test/completion_test.dart (right):

https://codereview.chromium.org/402723003/diff/20001/pkg/analysis_server/test...
pkg/analysis_server/test/completion_test.dart:50: int offset =
testCode.indexOf(pattern) + offsetFromPatternStart;
On 2014/07/17 21:09:32, scheglov wrote:
> Would it be easier to use some special character, like ^ or ! as a marker for
> the position to request completions? So, it'll be easier to write tests.
> 
> We could override addTestFile() in this class to find the completion offset
and
> remove the special character from the code.

Great suggestion. https://codereview.chromium.org/402803004/

Powered by Google App Engine
This is Rietveld 408576698