Skip to content

fix: move inline require('fs') and require('path') to top-level imports - #730

Merged
will-lamerton merged 3 commits into
Nano-Collective:mainfrom
ewfersg:main
Aug 7, 2026
Merged

will-lamerton merged 3 commits into
Nano-Collective:mainfrom
ewfersg:main

Conversation

@ewfersg

@ewfersg ewfersg commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Moved inline require('fs') and require('path') from _getHtmlForWebview method to top-level ES module imports
  • Consistent with the rest of the codebase which uses import syntax

Changes

  • Added import * as fs from 'fs' and import * as path from 'path' at the top of chat-webview-provider.ts
  • Removed the inline const fs = require('fs') and const path = require('path') from the _getHtmlForWebview method

Fixes #724

Test plan

  • pnpm run build:vscode succeeds
  • VS Code extension loads correctly

Replaced inline require() calls in _getHtmlForWebview with ES module
import statements at the top of the file, consistent with the rest of
the codebase.

Fixes Nano-Collective#724

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

No changeset found

This PR does not add a changeset, so it will not appear in the changelog or trigger a release.

If the change is user-facing, add one:

pnpm changeset

Pick a bump (patch / minor / major) and write the changelog entry in our usual voice ("Added X... Thanks to @you. Closes #123."), then commit the generated .changeset/*.md file.

If this PR is docs-only or a chore that needs no release note, you can ignore this - or run pnpm changeset --empty to record that intentionally.

…rdcoded 5000

Replace the hardcoded 5000ms timeout in WebSocketClient.connect() with
the shared TIMEOUT_PROVIDER_CONNECTION_MS constant from constants.ts.

Fixes Nano-Collective#723

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@will-lamerton

Copy link
Copy Markdown
Member

Hey @ewfersg - can you sort the merge conflicts? Thanks :)

@will-lamerton
will-lamerton merged commit 47e5650 into Nano-Collective:main Aug 7, 2026
1 check 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.

[Bug] Inline require() calls inside file attachment handlers

2 participants