mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 05:50:11 +01:00
Restore manual running from the repository (#4150)
This commit is contained in:
parent
04ece42881
commit
c4fa782fc2
2 changed files with 5 additions and 113 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue