Skip to content

Commit cccb8c6

Browse files
committed
Tweak theme() completion
1 parent 02f9d00 commit cccb8c6

File tree

1 file changed

+5
-0
lines changed
  • packages/tailwindcss-language-server/src/language

1 file changed

+5
-0
lines changed

packages/tailwindcss-language-server/src/language/cssServer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,16 @@ connection.onCompletion(async ({ textDocument, position }, _token) =>
162162
{
163163
...item,
164164
label: 'theme()',
165+
filterText: 'theme',
165166
documentation: {
166167
kind: 'markdown',
167168
value:
168169
'Use the `theme()` function to access your Tailwind config values using dot notation.',
169170
},
171+
command: {
172+
title: '',
173+
command: 'editor.action.triggerSuggest',
174+
},
170175
textEdit: {
171176
...item.textEdit,
172177
newText: item.textEdit.newText.replace(/^calc\(/, 'theme('),

0 commit comments

Comments
 (0)