weixin_39970166
weixin_39970166
2021-01-07 03:23

Using with VSCode online

I am getting Cannot install 'vscode-icons' extension since it cannot be enabled in the remote server. when trying to install the extension using VSCode online (online.visualstudio.com) running self-hosted environment on macOS (Catalina). VSCode version is 1.43. Extension version 10.0.0.

该提问来源于开源项目:vscode-icons/vscode-icons

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39830303 weixin_39830303 4月前

    This extension is a UI extension and can not be installed on a remote server.

    点赞 评论 复制链接分享
  • weixin_39970166 weixin_39970166 4月前

    I know. I didn’t try to install it on the backend. I wanted to have icons on the frontend of online vacode. Material theme icons extension worked fine.

    点赞 评论 复制链接分享
  • weixin_39830303 weixin_39830303 4月前

    According to https://github.com/microsoft/vscode-docs/blob/master/api/advanced-topics/remote-extensions.md#architecture-and-extension-kinds UI extensions can not be run on remote. Material themes is declared also as workspace as shown here (https://github.com/PKief/vscode-material-icon-theme/blob/master/package.json#L35) and that's why you can use it.

    点赞 评论 复制链接分享
  • weixin_39718460 weixin_39718460 4月前

    When using cdr/code-server, these icons can not be installed, even though the UI is running off the remote server.

    I think it's worth considering if this extension should change to support new emerging non-local environments such as code-server.

    点赞 评论 复制链接分享
  • weixin_39830303 weixin_39830303 4月前

    I was looking into this again and reading the docs (https://code.visualstudio.com/api/advanced-topics/remote-extensions#incorrect-execution-location bottom section)

    Why not try

    
        "remote.extensionKind": {
            "vscode-icons-team.vscode-icons": "workspace"
        }
    

    and sse what's cooking.

    And maybe #2199 is tied to this too.

    点赞 评论 复制链接分享
  • weixin_39830303 weixin_39830303 4月前

    Have you tried my suggestion. On WSL it seems to work.

    点赞 评论 复制链接分享
  • weixin_39970166 weixin_39970166 4月前

    Have you tried my suggestion. On WSL it seems to work.

    Let me try

    点赞 评论 复制链接分享

相关推荐