mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Prepare for 0.7.x
This commit is contained in:
parent
67c0d408a0
commit
a88225bcf0
4 changed files with 17 additions and 18 deletions
12
package.json
12
package.json
|
|
@ -19,12 +19,12 @@
|
|||
"event-stream": "^3.3.2",
|
||||
"gulp": "^3.9.1",
|
||||
"http-server": "^0.9.0",
|
||||
"monaco-css": "1.1.4",
|
||||
"monaco-editor-core": "0.7.1",
|
||||
"monaco-json": "1.0.7",
|
||||
"monaco-html": "1.0.0",
|
||||
"monaco-languages": "0.5.0",
|
||||
"monaco-typescript": "0.6.1",
|
||||
"monaco-css": "1.2.1",
|
||||
"monaco-editor-core": "0.7.3",
|
||||
"monaco-json": "1.1.1",
|
||||
"monaco-html": "1.1.0",
|
||||
"monaco-languages": "0.6.0",
|
||||
"monaco-typescript": "2.0.1",
|
||||
"rimraf": "^2.5.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,18 +29,9 @@ editor.addCommand({
|
|||
editor.addAction({
|
||||
id: 'my-unique-id',
|
||||
label: 'My Label!!!',
|
||||
keybindings: [
|
||||
{
|
||||
ctrlCmd: true,
|
||||
key: 'F10'
|
||||
}
|
||||
],
|
||||
enablement: {
|
||||
textFocus: true,
|
||||
wordAtPosition: true,
|
||||
tokensAtPosition: ['identifier', '', 'keyword'],
|
||||
},
|
||||
contextMenuGroupId: '2_change/2_bla',
|
||||
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.F10],
|
||||
contextMenuGroupId: 'navigation',
|
||||
contextMenuOrder: 2.5,
|
||||
run: function(ed) {
|
||||
console.log("i'm running => " + ed.getPosition());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,6 +69,10 @@ editor.addAction({
|
|||
|
||||
keybindingContext: null,
|
||||
|
||||
contextMenuGroupId: 'navigation',
|
||||
|
||||
contextMenuOrder: 1.5,
|
||||
|
||||
// Method that will be executed when the action is triggered.
|
||||
// @param editor The editor instance is passed in as a convinience
|
||||
run: function(ed) {
|
||||
|
|
|
|||
|
|
@ -31,6 +31,10 @@ editor.addAction({
|
|||
|
||||
keybindingContext: null,
|
||||
|
||||
contextMenuGroupId: 'navigation',
|
||||
|
||||
contextMenuOrder: 1.5,
|
||||
|
||||
// Method that will be executed when the action is triggered.
|
||||
// @param editor The editor instance is passed in as a convinience
|
||||
run: function(ed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue