xiaoboma

Results 7 comments of xiaoboma

求助,我照着这个方法写了一个theia自定义的插件api, ``` import { injectable } from 'inversify'; import { ExtPluginApiProvider, ExtPluginApi } from '@theia/plugin-ext/lib/common/plugin-ext-api-contribution'; import * as path from 'path'; @injectable() export class MusicPluginApiProvider implements ExtPluginApiProvider { provideApi(): ExtPluginApi...

总算是看到了,che-plugin还添加了一个backend的扩展,来处理前端对api-provider的请求,把文件返回给webworker。 感觉离实现距离还很远啊。。先给大哥点个赞!

有个问题,我基本上按照che-plugin的在写了 通过在```MainPluginApiProvider```中通过```rpc.set(xxx, new xxx)```来实现api. 但是在```createAPIFactory```使用```rpc.getProxy(xxx)```的时候,拿到该Api实现的对应的属性是undefined,这里不知道为什么。应该不需要我再在```BackendApplication```中自己起一套rpc服务了吧,感觉都没问题,但是拿到的属性就是undefined,可以提供点排查这个问题的思路吗?

不好意思,,我找了下,找到了。。在```plugin-ext/src/common/rpc-protocol```里面,设定了属性中```$```开头的才会进行转发, 虽然原理我还是不太懂,不过目前整体的扩展插件api算是走通了,打扰了。 ![image](https://user-images.githubusercontent.com/16518346/103348660-a4e6a300-4ad5-11eb-9922-49a14b096c6e.png)

you can just generate the onedarkpro jsonc file in vscode rather than get it from the repo; you can do this in vscode: cmd+shift+p and select generate color theme from...

看了下。不好支持,没有现成的语法文件。。近期不会做支持

you can try this gotodef in [live-editor-example](https://blog.maxiaobo.com.cn/base-editor/build/index.html), I think it's jump to cc.ts line 1. Maybe there is another trouble? ![image](https://user-images.githubusercontent.com/16518346/221521809-6b847a9b-ef04-48b6-9695-71b45ddf9ca5.png)