Update sample.js

pull/3726/head
Fizz 2 years ago committed by GitHub
parent f20e0c8d47
commit c5006e9dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ editor.addCommand(
monaco.KeyCode.Tab,
function () {
// services available in `ctx`
alert("my command is executing!");
console.log("my command is executing!");
},
"myCondition1 && myCondition2"
);
@ -36,7 +36,7 @@ editor.addCommand(
myCondition1.set(true);
setTimeout(function () {
alert("now enabling also myCondition2, try pressing Tab!");
console.log("now enabling also myCondition2, try pressing Tab!");
myCondition2.set(true);
// you can use myCondition2.reset() to go back to the default
}, 2000);

Loading…
Cancel
Save