Browse Source

Tooltip help on asm is now under a setting checkbox

dev/git-series/gccdum
Rubén Rincón 6 years ago
parent
commit
b14ce4b8e8
  1. 17
      static/compiler.js
  2. 1
      static/settings.js
  3. 4
      views/popups.pug

17
static/compiler.js

@ -590,14 +590,15 @@ define(function (require) {
};
this.updateDecorations();
}
var asmToolTip = currentWord && currentWord.word ? getAsmToolTip(currentWord.word) : null;
if (asmToolTip) {
this.decorations.asmToolTip = {
range: e.target.range,
options: {isWholeLine: false, hoverMessage: [asmToolTip + " More information available in the context menu."]}
};
this.updateDecorations();
if (this.settings.hoverShowAsmDoc === true) {
var asmToolTip = currentWord && currentWord.word ? getAsmToolTip(currentWord.word) : null;
if (asmToolTip) {
this.decorations.asmToolTip = {
range: e.target.range,
options: {isWholeLine: false, hoverMessage: [asmToolTip + " More information available in the context menu."]}
};
this.updateDecorations();
}
}
};

1
static/settings.js

@ -117,6 +117,7 @@ define(function (require) {
}
});
add(root.find('.hoverShowSource'), 'hoverShowSource', true, Checkbox);
add(root.find('.hoverShowAsmDoc'), 'hoverShowAsmDoc', true, Checkbox);
onSettingsChange(settings);
onChange(settings);

4
views/popups.pug

@ -75,6 +75,10 @@
label
input.hoverShowSource(type="checkbox")
| Highlight linked code lines on hover
.form-control.checkbox
label
input.hoverShowAsmDoc(type="checkbox")
| Show asm description on hover
h4 Compilation
.form-group(role="group")
.form-control.checkbox

Loading…
Cancel
Save