Expand an editor,

If I want to expand an editor, what should I do? Do I have any relevant articles or examples.
I’m sorry I’m a novice. I think there are too few articles to use. I personally suggest more examples of expansion. And I successfully launched Theia, but only the files in the sidebar don’t have the same icon that can be downloaded and expanded as vscode. What should I do to add the sidebar icon? If I want to use vscode’s extended vuter, what should I do

[original thread by yangyangyihao]

A few questions (so things are clearer):

  1. what do you mean by expand an editor?

  2. can you share you application’s package.json so we can more easily help you? If your use case needs vscode plugin support you will require the necessary dependencies to achieve your goal.

[yangyangyihao]

1 For example, I want to use my own editor for files with a suffix of. Vue. ABC。

[yangyangyihao]

2 I just started to learn how to start Theia according to the tutorial on the official website, so there is no place to share it. If you can, I want to learn how to share it with you so that I can ask questions in the future and get your answers. Can you tell me how to use vscode plug-ins

  1. you will need to create a custom Theia extension which implements OpenHandler. As an example you can refer to our [MarkdownPreviewHandler](https://github.com/eclipse-theia/theia/blob/master/packages/preview/src/browser/markdown/markdown-preview-handler.ts#L32 as an example.

  2. you may look at the example present in the main repo, or more language-specific examples present under theia-apps. These are examples of custom applications which have plugin support at the moment.

You may also refer to the following wiki page on how to consume extensions in your app: https://github.com/eclipse-theia/theia/wiki/Consuming-Builtin-and-External-VS-Code-Extensions

[Abhishek Chakraborty]

@xiaoxiaochengxuyuan take a look at this repo https://github.com/eclipsesource/coffee-editor which contains a custom editor

[yangyangyihao]

thank you very much。I’ll read it carefully

[yangyangyihao]

[yangyangyihao]

Is it like this after startup? It seems that there is an error, but I don’t know where there is an error. “Failed to start wfconfig language server: error: [workflowdsl] server launcher not found.”

[yangyangyihao]

[yangyangyihao]

Is it like this after startup? It seems that there is an error, but I don’t know where there is an error. “Failed to start wfconfig language server: error: [workflowdsl] server launcher not found.”

[yangyangyihao]

Thank you very much for your idea, which is very helpful to my overall idea. As you said, I can learn markdown’s “open with preview” to open the specified file in a specific way. I want to know how Theia integrates this ts. I mean, for example, I wrote a TS like this. How can I integrate this TS into Theia and HelloWorld in the same way? Look at the document you sent. It doesn’t look like the markdown rendering added through expansion

I’m sorry you’ll have to be much clearer. I still don’t understand your use-case or what you’re trying to achieve. I referenced the open-handler for markdown which permits users the ability to render markdown files by its output and not its sources. It is a good basis to start for your own implementation as you will register a new handler for the specific file type you care about, and open it in a specific way (likely a new type of editor or output).

[yangyangyihao]

I’m sorry. For example, I want to learn how to expand the MD view. Is the MD view implemented by extension? I see that his upper layer is very similar to the HelloWorld example. I want to practice an extension to achieve the same effect, but I don’t know which file is the breakthrough (the starting file). Is MD extension started with ‘preview-frontend-module. Ts’?

[yangyangyihao]

I want to realize it myself, but I don’t know where the expansion started. I guess he wrote it through expansion, but I’m not sure

[yangyangyihao]

Would you like to add ‘markdown-preview-handler.ts ා L32’ to let open with come out? This TS file is written to judge whether it can be processed and how to render. I want to know how to add such a file to Theia when it meets the conditions and display it in ‘open with‘ .Thank you for your help anyway. What I want to do is to implement an MD rendering similar to my own, which can be edited at the same time. Where should open code editor look

[Kyrgyz NLP]

I can relate to you. It’s a little bit hard to understand where’s the entrypoint. Have you resolved the issue?
Mine was like where do I put the developed extension? How do I package? Should I publish it via npm and my new extension to my build?

[yangyangyihao]

I’m sorry I haven’t done that yet.How should I download @ Theia / ext scripts

Have you seen https://theia-ide.org/docs/authoring_extensions/ already?