mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
fix: fix hover example
Signed-off-by: pmc <pangmengchen@gmail.com>
This commit is contained in:
parent
6e7b4b68dd
commit
355c1ec992
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ monaco.languages.register({ id: "mySpecialLanguage" });
|
||||||
|
|
||||||
monaco.languages.registerHoverProvider("mySpecialLanguage", {
|
monaco.languages.registerHoverProvider("mySpecialLanguage", {
|
||||||
provideHover: function (model, position) {
|
provideHover: function (model, position) {
|
||||||
return xhr("../playground.html").then(function (res) {
|
return xhr("./playground.html").then(function (res) {
|
||||||
return {
|
return {
|
||||||
range: new monaco.Range(
|
range: new monaco.Range(
|
||||||
1,
|
1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue