Skip to content

Commit

Permalink
Chore: No file extension in the label when completing recipe in the s…
Browse files Browse the repository at this point in the history
…tring content
  • Loading branch information
WilsonZiweiWang committed Apr 22, 2024
1 parent 293fb64 commit 28bd062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/__tests__/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe('On Completion', () => {
expect.arrayContaining([
expect.objectContaining(
{
label: 'busybox.bb',
label: 'busybox',
kind: 8,
insertText: 'busybox'
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/connectionHandlers/onCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ function convertElementInfoListToCompletionItemList (elementInfoList: ElementInf
const filePath = getFilePath(element, fileType)
const base = element.name + '.' + fileType
const completionItem: CompletionItem = {
label: fileType === 'bbclass' ? element.name : base,
label: (nameOnly || fileType === 'bbclass') ? element.name : base,
detail: base,
labelDetails: {
description: filePath ?? fileType
Expand Down

0 comments on commit 28bd062

Please sign in to comment.