Skip to content

Commit

Permalink
Support running in web mode
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyTy committed Dec 14, 2023
1 parent b477746 commit f6a1c60
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ Requires Hexa compiler on your host or remote machine

![Features](features.png?raw=true)

## Web Extension

This extension works in web VSCode environment like github.dev

## Install

<https://marketplace.visualstudio.com/items?itemName=PeyTy.vshexa>
Expand Down
1 change: 1 addition & 0 deletions extension/extension.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// PeyTy (c) 2023
"use strict"

// Used for TypeScript JSDoc @types
Expand Down
9 changes: 9 additions & 0 deletions extension/web.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// PeyTy (c) 2023
"use strict"

// Only this one is allowed for web extension!
const vscode = require('vscode')

exports.activate = function (context) {
// TODO
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"onLanguage:hexa"
],
"main": "./extension/extension.js",
"browser": "./extension/web.js",
"categories": [
"Programming Languages",
"Linters"
Expand Down

0 comments on commit f6a1c60

Please sign in to comment.