Skip to content

Commit

Permalink
new release, ensure that code completion knows about g on devices w…
Browse files Browse the repository at this point in the history
…ith an LCD
  • Loading branch information
gfwilliams committed Apr 4, 2024
1 parent 5191042 commit 2654d46
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion js/plugins/tern.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
if (err) throw new Error("Request for ecma5.json failed: " + err);
espruinoJSON = code;
server = new CodeMirror.TernServer({defs: [JSON.parse(espruinoJSON)]});

Espruino.Core.EditorJavaScript.getEditors().forEach(applyToEditor);
});

Expand Down Expand Up @@ -94,6 +94,12 @@
};
}
});
if ("LCD" in data.devices)
defs["g"] = {
"!type": "+Graphics",
"!doc": "Graphics instance for on-device LCD",
"!url": "https://www.espruino.com/Reference#Graphics"
};
}

// reload tern server with new defs
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Espruino Web IDE",
"short_name": "Espruino IDE",
"description": "A Terminal and Graphical code Editor for Espruino JavaScript Microcontrollers",
"version": "0.78.15",
"version": "0.78.16",
"app": {
"background": {
"scripts": ["js/background.js"]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "espruino-web-ide",
"version": "0.78.15",
"version": "0.78.16",
"description": "A Terminal and Graphical code Editor for Espruino JavaScript Microcontrollers",
"//1": "-------------------------------------------------------- nw.js",
"main": "main.html",
Expand Down
2 changes: 1 addition & 1 deletion serviceworker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Service worker for Offline Web IDE
const VERSION = 'v120';
const VERSION = 'v121';

const CACHED_RESOURCES = [
'blockly/blockly_espruino.js',
Expand Down

0 comments on commit 2654d46

Please sign in to comment.