فهرست منبع

Prepare for 0.7.x

Alex Dima 8 سال پیش
والد
کامیت
a88225bcf0

+ 6 - 6
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"
   }
 }

+ 3 - 12
test/index.js

@@ -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());
 	}

+ 4 - 0
test/playground.generated/interacting-with-the-editor-adding-an-action-to-an-editor-instance.html

@@ -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) {

+ 4 - 0
website/playground/new-samples/interacting-with-the-editor/adding-an-action-to-an-editor-instance/sample.js

@@ -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) {