Skip to content

fix(vscode): detect rslint configs above the workspace folder - #89

Merged
fi3ework merged 9 commits into
mainfrom
fix/lint-ancestor-config
Oct 9, 2026
Merged

fi3ework merged 9 commits into
mainfrom
fix/lint-ancestor-config

Conversation

@fi3ework

@fi3ework fi3ework commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Summary

Opening repo/packages/app while the only rslint.config.* sits at repo/ produced no Rslint diagnostics. The rslint CLI, its Go server and the retired rstack.rslint extension all lint that folder with the root config, so native lint detection now looks above the workspace folder too.

 detectFolder(folder)
   in-folder rslint.config.*        -> native
   root rstack.config.*             -> bridged
+  nearest rslint.config.* above    -> native   (only if @rslint/core resolves from the folder)
   otherwise                        -> not detected
  • The walk runs to the filesystem root, nearest first, and skips node_modules directories, like Go's findCandidateUp. It never displaces an in-folder config or a bridged folder.
  • Each ancestor directory gets a non-recursive watcher for the config names and lockfiles, so creating or deleting a config above the folder re-runs detection.
  • Every native runtime also watches the ancestor directories for rslint.config.* and sends rslint/configRefresh. These watchers are installed before the server boots, because Go registers its own ancestor watchers only after initialization: macOS CI lost an edit made right after startup.
  • The lint Output channel logs the ancestor path when detection changes.
  • fmt, Rstest and bridged lint stay folder-local, because rs fmt and rs lint read only their cwd.
  • RSLINT_CONFIG_GLOB and the watch globs now derive from a single RSLINT_CONFIG_NAMES.

Evidence: the new E2E suite suite-ancestor opens packages/app with the config two levels up. It checks that the no-debugger diagnostic appears and follows edits to the root config. It also checks that deleting the root config unregisters the lint stack and recreating it brings the stack back. With the root rule set to off, the suite fails with "Timed out … waiting for rslint diagnostics".

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T04:44:50.438663Z 72aeb03 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 590b45e714

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/vscode/src/detection.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 588db7ceda

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/vscode/src/detection.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b4eee01462

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/vscode/src/detection.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a5e1c04597

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/vscode/src/stacks/lint/resolution.ts
Comment thread packages/vscode/e2e/lint/runTest.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: afacb3c719

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/vscode/src/detection.ts
@fi3ework
fi3ework merged commit 7fe84bd into main Oct 9, 2026
3 checks passed
@fi3ework
fi3ework deleted the fix/lint-ancestor-config branch October 9, 2026 05:10
This was referenced Oct 9, 2026
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.

1 participant