microsoft / microsoft/monaco-editor

Disable built-in link provided

Open
#2,053 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

editor-api feature-request
Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

monaco-editor version: 0.20.0
Browser:: Whatever ships with Electron 9.1.0
OS:: macOS 10.14
Playground code that reproduces the issue:

monaco.editor.create(document.getElementById("container"), {
	value: 'http://foo.unknownasd',
	language: "text"
});

There seems to be a built-in link provider for all languages, which detects a link in that sample snippet of text. How do I disable it? Possibly only just for a particular language.

I need this because I'm providing my own link detection logic so there seems to be some unnecessary work going on currently, plus I don't think a link should be detected at all in that snippet of text because "unknownasd" is not a IANA TLD.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the link detection with the provided Monaco playground code and review how the built-in link provider is registered for the text language. Determine whether the provider can be disabled globally or per language; done means the built-in detection is suppressed without preventing the reported custom link logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.