Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

WIP: Get extension working in vscode.dev #124

Closed
wants to merge 16 commits into from
Closed

Conversation

anthmatic
Copy link
Contributor

@anthmatic anthmatic commented Nov 16, 2021

Adds a new webpack config targeting browsers and fallbacks to handle most deps

Known issues:

  • Config lookup: This logic lives in @hubspot/cli-lib and uses node's fs module so we'll need to find an alternative method of loading a config

Fixes: #123

@@ -40,7 +39,7 @@ const isFileInWorkspace = (error) => {
filePath = filePath + '.module';
}

return fs.existsSync(path.resolve(dirToActiveFile, filePath));
return vscode.workspace.fs.stat(path.resolve(dirToActiveFile, filePath));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Roughly how to address fs, however this extension relies on cli-lib which uses fs directly

@anthmatic
Copy link
Contributor Author

Just posting an update here on the progress:

Most of the functionality is here to allow the extension to work in the web version of VS Code and removes its reliance on the HS CLI-LIB as well. However, because the extension operates in a WebWorker, requests that are made to the HS API fail because they do not have CORS enabled. Discussing a path forward internally.

@anthmatic anthmatic closed this Dec 13, 2022
@TanyaScales TanyaScales deleted the add-web-build branch July 25, 2023 20:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add browser extension functionality if possible
1 participant