Browse Source

Make compile action more noticeable. Fixes #274

dev/git-series/gccdum
Matt Godbolt 6 years ago
parent
commit
411c38aff5
  1. 2
      static/compiler.js
  2. 5
      static/editor.js

2
static/compiler.js

@ -106,7 +106,7 @@ define(function (require) {
this.outputEditor.addAction({
id: 'viewsource',
label: 'View source',
label: 'Highlight source',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.F10],
keybindingContext: null,
contextMenuGroupId: 'navigation',

5
static/editor.js

@ -90,6 +90,9 @@ define(function (require) {
id: 'compile',
label: 'Compile',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter],
keybindingContext: null,
contextMenuGroupId: 'navigation',
contextMenuOrder: 1.5,
run: _.bind(function () {
this.maybeEmitChange();
}, this)
@ -109,7 +112,7 @@ define(function (require) {
this.editor.addAction({
id: 'viewasm',
label: 'View assembly',
label: 'Highlight assembly',
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.F10],
keybindingContext: null,
contextMenuGroupId: 'navigation',

Loading…
Cancel
Save