Repository navigation
fix: move inline require('fs') and require('path') to top-level imports - #730
Merged
Merged
Conversation
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]>
ewfersg
requested review from
Avtrkrb,
akramcodez and
will-lamerton
as code owners
July 31, 2026 21:34
Contributor
No changeset foundThis 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 changesetPick 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 If this PR is docs-only or a chore that needs no release note, you can ignore this - or run |
…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]>
Member
|
Hey @ewfersg - can you sort the merge conflicts? Thanks :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
require('fs')andrequire('path')from_getHtmlForWebviewmethod to top-level ES module importsimportsyntaxChanges
import * as fs from 'fs'andimport * as path from 'path'at the top ofchat-webview-provider.tsconst fs = require('fs')andconst path = require('path')from the_getHtmlForWebviewmethodFixes #724
Test plan
pnpm run build:vscodesucceeds