Skip to content

Commit

Permalink
fix: inline token completion (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo authored Nov 9, 2023
2 parents 9c664da + c457543 commit fa9c355
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-eggs-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pandacss/language-server': patch
---

Fix inline token completions due to an issue with the settings retrieval
7 changes: 6 additions & 1 deletion packages/language-server/src/panda-language-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ export class PandaLanguageServer {

this.project = new ProjectHelper(getContext)
this.tokenFinder = new TokenFinder(getContext, this.project)
this.completions = new CompletionProvider(getContext, this.getPandaSettings, this.project, this.tokenFinder)
this.completions = new CompletionProvider(
getContext,
this.getPandaSettings.bind(this),
this.project,
this.tokenFinder,
)

this.builderResolver = new BuilderResolver(({ configPath, builder }) => {
const ctx = builder.context
Expand Down

0 comments on commit fa9c355

Please sign in to comment.