Restore manual running from the repository (#4150)

This commit is contained in:
Alexandru Dima 2023-08-31 09:57:50 +02:00 committed by GitHub
parent 04ece42881
commit c4fa782fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 113 deletions

View file

@ -1,4 +1,4 @@
/// <reference path="../../release/monaco.d.ts" />
/// <reference path="../../out/monaco-editor/monaco.d.ts" />
define(['require', './samples'], function (require, SAMPLES) {
const domutils = require('vs/base/browser/dom');
@ -20,16 +20,10 @@ define(['require', './samples'], function (require, SAMPLES) {
renderWhitespace: true
});
editor.addCommand(
{
ctrlCmd: true,
key: 'F9'
},
function (ctx, args) {
alert('Command Running!!');
console.log(ctx);
}
);
editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.F9, function (ctx, args) {
alert('Command Running!!');
console.log(ctx);
});
editor.addAction({
id: 'my-unique-id',