Skip to content

Commit d8e79f0

Browse files
committed
Add extension content
1 parent 83172a3 commit d8e79f0

File tree

3 files changed

+526
-1
lines changed

3 files changed

+526
-1
lines changed

lib/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
import './stata'
3+
14
module.exports = [
25
{
36
id: 'jupyterlab_stata_highlight2',
@@ -7,6 +10,16 @@ module.exports = [
710
'JupyterLab extension jupyterlab_stata_highlight2 is activated!'
811
);
912
console.log(app.commands);
13+
registerStataFileType(app);
1014
}
1115
}
1216
];
17+
18+
function registerStataFileType(app) {
19+
app.docRegistry.addFileType({
20+
name: 'stata',
21+
displayName: 'Stata',
22+
extensions: ['do', 'ado'],
23+
mimeTypes: ['text/x-stata'],
24+
});
25+
}

0 commit comments

Comments
 (0)