Skip to content

Opensumi可能不支持某些vscode扩展。 #1885

Answered by erha19
10000l asked this question in Q&A
Discussion options

You must be logged in to vote

@linxiaolx-lx 排查到原因了,主要原因是你安装的 python 插件版本对内核版本有要求,报错如下:

目前 OpenSumi 的内核版本还在 1.63.2,这里的任务 https://github.com/opensumi/core/projects/17 完成后我们会将内核版本升级到 1.69.0

如果你目前需要使用该插件,有两种方式:

  1. 修改插件内核版本
  2. 修改集成侧的内核版本

修改集成侧的内核版本方法如下:

将原有插件进程的入口文件 ext.process-base.js 引出后重新定义内容后使用

import { extProcessInit } from '@opensumi/ide-extension/lib/hosted/ext.process-base.js';
import LogServiceClass from './mock-log-service';

(async () => {
  await extProcessInit({
    LogServiceClass,
    builtinCommands: [],
    customVSCodeEngineVersion: '1.67.0',
  });
})();

修改后插件运行效果如下:

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@10000l
Comment options

@10000l
Comment options

@erha19
Comment options

@10000l
Comment options

Comment options

You must be logged in to vote
1 reply
@10000l
Comment options

Answer selected by erha19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants