Skip to content

eslint: fix bracket notation in remote tooling - #334770

Open
Dmitriy Vasyura (dmitrivMS) wants to merge 7 commits into
mainfrom
agents/fix-bracket-notation-remote-networking
Open

eslint: fix bracket notation in remote tooling#334770
Dmitriy Vasyura (dmitrivMS) wants to merge 7 commits into
mainfrom
agents/fix-bracket-notation-remote-networking

Conversation

@dmitrivMS

Copy link
Copy Markdown
Collaborator

Summary

  • replace bracket notation with dot notation for identifier-like properties in the Remote, tunnels, networking, and authentication cleanup group
  • remove all 11 cleaned paths in that group from .eslint-allowed-bracket-notation-files
  • replace private-member access in the GitHub authentication test with an explicit persisted-session reader seam
  • exercise remote tunnel startup through its registered public command instead of calling a private contribution method

This PR is intentionally stacked on #334756, which enables local/code-no-bracket-notation-for-identifiers. Its base should be changed to main after #334756 merges.

Validation

  • targeted ESLint with --max-warnings=0 across all changed JavaScript and TypeScript files
  • npm run typecheck-client
  • targeted compilation of the GitHub and Microsoft authentication extensions
  • npm run transpile-client
  • focused core unit tests — 70 tests passed
  • focused GitHub authentication integration test — 1 test passed
  • targeted hygiene across all 13 changed files
  • git diff --check

Enable code-no-bracket-notation-for-identifiers for JavaScript and TypeScript files while grandfathering the 509 files with existing violations in a CODEOWNERS-gated allowlist.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Organize the existing baseline by feature area so cleanup can be tracked and assigned without changing the excluded file set.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add RuleTester coverage for valid accesses, diagnostics, and autofix edge cases. Preserve escaped string-literal property names by checking their raw source before reporting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use dot notation across remote, tunnel, networking, and authentication code and remove the 11 cleaned files from the allowlist. Replace private-member test access with explicit session persistence and command-level test seams.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Base automatically changed from agents/enable-bracket-notation-rule to main September 6, 2026 15:02
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 6, 2026 21:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The reviewed changes have no unresolved approval-blocking issues.

Review tier: Balanced
Findings: None

What changed in this PR

Updates remote tooling and authentication code to comply with the bracket-notation ESLint rule while preserving test coverage through public seams.

Changes:

  • Replaces identifier-style bracket access with dot notation.
  • Adds testable seams for persisted GitHub sessions and tunnel startup.
  • Removes cleaned files from the ESLint allowlist.
File Description
src/​vs/​workbench/​contrib/​remoteTunnel/​test/​electron-browser/​remoteTunnel.contribution.test.ts Exercises startup through the registered command.
src/​vs/​workbench/​contrib/​remote/​browser/​remoteStartEntry.ts Updates tunnel-tip property access.
src/​vs/​platform/​webContentExtractor/​test/​electron-main/​webPageLoader.test.ts Updates header assertions.
src/​vs/​platform/​webContentExtractor/​electron-main/​webPageLoader.ts Updates request-header access.
src/​vs/​platform/​tunnel/​test/​node/​tunnelProxy.test.ts Updates tunnel header assertions.
src/​vs/​platform/​tunnel/​node/​tunnelProxy.ts Updates header and regex-group access.
src/​vs/​platform/​request/​node/​requestService.ts Updates redirect-header access.
src/​vs/​platform/​remote/​node/​wsl.ts Updates SystemRoot access.
src/​vs/​platform/​github/​common/​githubTransport.ts Updates authorization-header access.
extensions/​microsoft-authentication/​src/​common/​experimentation.ts Updates package-version access.
extensions/​github-authentication/​src/​test/​github.test.ts Tests session persistence without private access.
extensions/​github-authentication/​src/​github.ts Extracts persisted-session reading into a testable function.
.eslint-allowed-bracket-notation-files Removes 11 remediated paths.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vs-code-engineering

vs-code-engineering Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

TylerLeonhardt

Matched files:

  • extensions/microsoft-authentication/src/common/experimentation.ts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants