Skip to content

Commit

Permalink
most module specifier is resolved in getCompletionsAtPosition now
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlyu123 committed Dec 29, 2023
1 parent bfa7eb4 commit ee8e224
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ describe('CompletionProviderImpl', function () {
const item = completions?.items.find((item) => item.label === '$store');

assert.ok(item);
assert.equal(item?.data?.source?.endsWith('completions/to-import'), true);
assert.equal(item?.data?.source?.endsWith('/to-import'), true);

const { data, ...itemWithoutData } = item;

Expand All @@ -1558,7 +1558,9 @@ describe('CompletionProviderImpl', function () {
insertTextFormat: undefined,
commitCharacters: ['.', ',', ';', '('],
textEdit: undefined,
labelDetails: undefined
labelDetails: {
description: './to-import'
}
});

const { detail } = await completionProvider.resolveCompletion(document, item);
Expand Down

0 comments on commit ee8e224

Please sign in to comment.