Questions tagged [monaco-languageserver]

12 questions
3
votes
0 answers

How do I define an embedded language with semantic highlighting from the outer language?

I am writing a language syntax definition for my custom language which has embedded SQL. The custom language will define some table names which I'd like the embedded SQL state to be semantically aware of, for example: // root state TableFoo =…
2
votes
1 answer

How to start clangd via web socket

I wanted to integrate Clangd with Monaco Editor and while trying to achieve this I found that I can't start Clangd via Web Sockets. When I run clangd in my terminal, it outputs Starting LSP over stdin/stdout, is there a way to let it launch a web…
2
votes
0 answers

Monaco: Syntax highlighting for multiple languages in single document

I would like to have syntax highlighting for multiple languages in single file. Just like the markdown monarch example in which you can embed different languages inside a code block and specify the language. Since markdown is implemented using…
Grim
  • 937
  • 10
  • 24
2
votes
0 answers

Uncaught ReferenceError: monaco is not defined at new t.MonacoWorkspace

I just build the sample in the example folder (with some modifications to make monaco edit typescript rather json(I'm getting to know how to use monaco api), below in the post) but I got some erros on the console window like below and the…
1
vote
0 answers

How to Integrate monaco editor with monaco-languageclient using js library?

I am working on an Angularjs project and want to integrate monaco editor with its language server using js library.
Suraj
  • 31
  • 3
1
vote
1 answer

How to connect Volar to Monaco Editor?

I'm building a custom IDE (using Electron) and am trying to integrate Volar into VS Code's Monaco Editor. Currently I have no syntax highlighting for .vue files: My understanding is that I need to run an LSP server in a separate process and somehow…
0
votes
0 answers

When using defineTheme and setMonarchTokensProvider, the default theme is overridden

When using defineTheme and setMonarchTokensProvider, the default theme is overridden I introduced the cpp language pack, but I wanted to customize some hints and highlight them, but when I set them, they overwrite the vs theme by…
0
votes
0 answers

Monaco Editor with custom language server syntax highlighting not working

I want to add the monaco editor in a angular project with syntax highlighting, intellisense and syntax checking for python. The language server from github (https://github.com/python-lsp/python-lsp-jsonrpc) and use this github repository to connect…
0
votes
1 answer

FindController is Not Working with Monaco Editor

In my custom IDE, I am using monaco editor. We have added a lnaguge server using monaco-language client. We used @monaco-editor/react package to integarte with react. After integration when I click on CTRL + F find popup is not shown and warning is…
0
votes
2 answers

How to add error highlights for Importing Unknown Packages or Modules in Monaco Editor for newly registered Language Java?

Currently we are integrating Java Language Server to Monaco Editor. There when I am trying to import unknown modules or packages it is not throwing warning or errors.. Tried using Tokenizer but didn't worked out. When I am importing any unknown…
Bansl
  • 11
  • 2
0
votes
0 answers

Monaco Editor and LSP written on Java

Is it really possible to connect Monaco editor with Groovy Language Server using monaco-languageclient as described here with Python? Has someone seen any examples of this at all?
0
votes
2 answers

Monaco-Editor Some keywords are not highlighted

What is the logic of highlighting? I feel the same language is randomly highlighted. the version is "monaco-editor": "0.18.1", "monaco-editor-webpack-plugin": "1.7.0",