menu
Channels
Team

expand an editor,

April 15, 2020 at 2:33am

expand an editor,

April 15, 2020 at 2:33am
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

April 15, 2020 at 2:40am
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.
  • reply
  • like
1 For example, I want to use my own editor for files with a suffix of. Vue. ABC。
  • reply
  • like
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
  • reply
  • like
  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.
  • reply
  • like
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
  • reply
  • like
take a look at this repo https://github.com/eclipsesource/coffee-editor which contains a custom editor
thank you very much。I'll read it carefully
  • reply
  • like

April 16, 2020 at 1:57am
take a look at this repo https://github.com/eclipsesource/coffee-editor which contains a custom editor
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."
  • reply
  • like
  • reply
  • like
take a look at this repo https://github.com/eclipsesource/coffee-editor which contains a custom editor
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."
  • reply
  • like
  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.
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
  • reply
  • like
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).
  • reply
  • like
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).
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'?
  • reply
  • like
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
  • reply
  • like
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).
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
  • reply
  • like

April 17, 2020 at 5:08am
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'?
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?
  • reply
  • like
I'm sorry I haven't done that yet.How should I download @ Theia / ext scripts
  • reply
  • like
How can I get other icons out? For example, search keywords
  • reply
  • like
View -> Search as a user, SearchInWorkspaceContribution.openView programmatically, usually it is done in https://github.com/eclipse-theia/theia/blob/master/packages/core/src/browser/frontend-application.ts#L70
Edited
  • reply
  • like
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?
dependencies can be referenced in the following way as described by the npm docs. If you want to successfully consume extensions in your custom application they must be declared in your application's package.json. You may want to take a look at the following resource authoring-extensions to get a better overview of how extensions are created, wired, and packaged.
  • reply
  • like

April 17, 2020 at 7:43pm
Thank you for your help!
  • reply
  • like
Show more messages
private
This channel has been archived