Skip to content

Set value of 'vscode.env.appRoot' #706

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

Closed
edgardmessias opened this issue May 21, 2019 · 3 comments
Closed

Set value of 'vscode.env.appRoot' #706

edgardmessias opened this issue May 21, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@edgardmessias
Copy link

  • code-server version: 1.1119-vsc1.33.1
  • OS Version: wsl (Ubuntu 18.04.2 LTS)

Description

Set value of 'vscode.env.appRoot' to resolve with <vscode path>/resources/app.

Some extensions use a tip to load the native node_modules of VSCode, like require(appRoot + "/node_modules.asar/<module_name>").

This can solve the problem with "Bracket Pair Colorizer 2" (#544)

Current value of vscode.env.appRoot is empty, and "Bracket Pair Colorizer 2" try load the /./node_modules.asar/vscode-textmate

@edgardmessias edgardmessias added the bug Something isn't working label May 21, 2019
@ahmedanis03
Copy link

how can we set this value?

@sr229
Copy link
Contributor

sr229 commented Sep 12, 2019

@edgardmessias Try out v2, I think on latest tree this'll be fixed.

@code-asher
Copy link
Member

Definitely should be fixed in v2. We map node_modules.asar to node_modules to make it all work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@edgardmessias @sr229 @ahmedanis03 @code-asher and others