Skip to content

✨ Add variable definition feature - #27

Merged
carishkaa merged 1 commit into
masterfrom
feat/18-definition-provider
Jun 5, 2026
Merged

carishkaa merged 1 commit into
masterfrom
feat/18-definition-provider

Conversation

@carishkaa

@carishkaa carishkaa commented Feb 3, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #18

@carishkaa
carishkaa force-pushed the feat/18-definition-provider branch 2 times, most recently from 72e68e5 to ab46971 Compare February 3, 2026 09:21
@carishkaa
carishkaa requested a review from pavelsvagr February 3, 2026 09:24

@pavelsvagr pavelsvagr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the implementation, I just have one code design question. Otherwise nice job done!


const matches: KeyMatch[] = []
// eslint-disable-next-line security/detect-non-literal-regexp
const regex = new RegExp(`"${escapeRegExp(key)}"\\s*:\\s*`, 'g')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: What about using more of context and it's helpers?

I can imagine this implementation being a new Configuru Event. Methods can be new helpers. I can see here at least something like / getEnvFilesKeys returning file paths and keys in the Env file.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a new event and moved getEnvFilesKeys to helpers

@carishkaa
carishkaa force-pushed the feat/18-definition-provider branch from ab46971 to bb35f1f Compare May 4, 2026 14:50
@carishkaa
carishkaa force-pushed the feat/18-definition-provider branch from bb35f1f to 2c1dc6c Compare May 4, 2026 14:54
@carishkaa
carishkaa merged commit 9c3fba3 into master Jun 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Implement DefinitionProvider for keys in config.ts file

2 participants