Skip to content

Commit

Permalink
new vscode extension
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Sep 11, 2024
1 parent 3edb672 commit eb95962
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 215 deletions.
7 changes: 7 additions & 0 deletions editors/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to the "super" extension will be documented in this file.


## [v0.3.0]
Now the LSP server is bundled in the extension, no need for a separate download anymore.

## [v0.2.0]
Introduced correct syntax highlighting grammar.

## [v0.1.3]
Add 'path' setting for this extension to allow specifying location of the Super CLI executable manually.

Expand Down
9 changes: 5 additions & 4 deletions editors/vscode/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# SuperHTML LSP VSCode Extension

This extension gives you diagnostics and autoformatting for HTML files.
# SuperHTML VSCode LSP
Language Server for HTML and SuperHTML Templates.

![](../../.github/vscode-autoformat.gif)

**NOTE: you will need to get the `superhtml` CLI tool and have it available in your PATH (or set the path manually in your VSCode settings)!**

# NOTE: This extension bundles the full language server

But you can optionally also get the CLI tool so that you can access it outside of VSCode.
For prebuilt binaries and more info: https://github.com/kristoff-it/superhtml


Expand Down
38 changes: 19 additions & 19 deletions editors/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

93 changes: 0 additions & 93 deletions editors/vscode/package-old.json

This file was deleted.

26 changes: 7 additions & 19 deletions editors/vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "super",
"displayName": "SuperHTML",
"description": "Actually Functional Language Server for HTML Files",
"description": "Language Server for HTML and SuperHTML Templates.",
"repository": "https://github.com/kristoff-it/superhtml/",
"publisher": "LorisCro",
"version": "0.1.4",
"version": "0.3.0",
"engines": {
"vscode": "^1.87.0"
"vscode": "^1.92.0"
},
"categories": [
"Formatters"
Expand Down Expand Up @@ -40,7 +40,7 @@
"extensions": [
".shtml"
],
"configuration": "./superhtml1.language-configuration.json"
"configuration": "./superhtml.language-configuration.json"
}
],
"grammars": [
Expand Down Expand Up @@ -71,19 +71,7 @@
"meta.tag string.quoted": "other"
}
}
],
"configuration": {
"type": "object",
"title": "Super",
"properties": {
"super.path": {
"scope": "machine-overridable",
"default": "super",
"type": "string",
"description": "Set a custom path to the super binary. The string \"super\" means lookup Super in PATH."
}
}
}
]
},
"main": "./out/extension",
"extensionDependencies": [
Expand All @@ -92,7 +80,7 @@
"devDependencies": {
"@types/mocha": "^2.2.48",
"@types/node": "^18.0.0",
"@types/vscode": "^1.68.0",
"@types/vscode": "^1.92.0",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
Expand All @@ -107,7 +95,7 @@
"lodash-es": "^4.17.21",
"lodash.debounce": "^4.0.8",
"mkdirp": "^2.1.3",
"vscode-languageclient": "^10.0.0-next.13",
"vscode-languageclient": "^10.0.0-next.12",
"which": "^3.0.0"
},
"scripts": {
Expand Down
76 changes: 0 additions & 76 deletions editors/vscode/src/extension-old.ts

This file was deleted.

3 changes: 0 additions & 3 deletions editors/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ export async function activate(context: ExtensionContext) {
channel.append(decoder.decode(data));
});

// process.stdin!.write("banana".repeat(10000));
// process.stdin!.write("cake");

return startServer(process);
};

Expand Down
Loading

0 comments on commit eb95962

Please sign in to comment.