Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support path mapping and vscode:// protocol for use in containerized environments #429

Open
3 tasks done
abcRede opened this issue Dec 26, 2024 · 0 comments
Open
3 tasks done

Comments

@abcRede
Copy link

abcRede commented Dec 26, 2024

Is your feature request related to a problem? Please describe.

Currently, when using vite-plugin-checker in a Docker container, the file paths reported for issues in browser differ from the real file paths on the host machine where I have VSCode open. This leads to an error like:
Could not open MyFile.vue in the editor. on terminal, after clicking in the linted file.

Even when using the Dev Container feature of VSCode, this problem persists.

Describe the solution you'd like

I suggest implementing support for opening files using the vscode://file protocol. This would allow vite-plugin-checker to include clickable links for file paths that resolve correctly in VSCode, even when running inside a Docker container.

Additionally, a configuration option could be added to map container paths to host paths. For example:

checker({
  eslint: {
    filePathMap: {
      '/app': '/Users/username/project'
    }
  }
})

Describe alternatives you've considered

No response

Additional context

No response

Validations

  • Read the docs.
  • Read the Contributing Guidelines.
  • Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
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

No branches or pull requests

1 participant