Prepare for v0.1.0

This commit is contained in:
CismonX 2020-11-16 03:36:54 +08:00
parent 99a569d140
commit a46bc05846
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
5 changed files with 15 additions and 2 deletions

View File

@ -1 +1,5 @@
# Changelog # Changelog
## v0.1.0 - 11/16/2020
Initial release.

6
package-lock.json generated
View File

@ -1461,6 +1461,12 @@
"esprima": "^4.0.0" "esprima": "^4.0.0"
} }
}, },
"json": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/json/-/json-10.0.0.tgz",
"integrity": "sha512-iK7tAZtpoghibjdB1ncCWykeBMmke3JThUe+rnkD4qkZaglOIQ70Pw7r5UJ4lyUT+7gnw7ehmmLUHDuhqzQD+g==",
"dev": true
},
"json-parse-better-errors": { "json-parse-better-errors": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",

View File

@ -1,7 +1,7 @@
{ {
"name": "texinfo", "name": "texinfo",
"displayName": "Texinfo Language Support", "displayName": "Texinfo Language Support",
"description": "Provides basic editing experience for the Texinfo language, including syntax highlighting, code completion, HTML preview, etc.", "description": "Provides basic editing experience for Texinfo documents, including syntax highlighting, code completion, HTML preview, etc.",
"publisher": "cismonx", "publisher": "cismonx",
"version": "0.1.0", "version": "0.1.0",
"author": { "author": {
@ -24,6 +24,7 @@
"@typescript-eslint/parser": "^4.7.0", "@typescript-eslint/parser": "^4.7.0",
"cson": "^7.20.0", "cson": "^7.20.0",
"eslint": "^7.13.0", "eslint": "^7.13.0",
"json": "^10.0.0",
"language-texinfo": "^1.0.0", "language-texinfo": "^1.0.0",
"node-html-parser": "^2.0.0", "node-html-parser": "^2.0.0",
"ts-loader": "^8.0.11", "ts-loader": "^8.0.11",

View File

@ -5,4 +5,4 @@ DEST_PATH=./out/grammars
mkdir -p $DEST_PATH mkdir -p $DEST_PATH
cp $SRC_PATH/LICENSE.md $DEST_PATH cp $SRC_PATH/LICENSE.md $DEST_PATH
# Convert TextMate grammar from CSON to JSON, as VSCode cannot recognize CSON ones. # Convert TextMate grammar from CSON to JSON, as VSCode cannot recognize CSON ones.
cson2json $SRC_PATH/grammars/texinfo.cson > $DEST_PATH/texinfo.json cson2json $SRC_PATH/grammars/texinfo.cson | json -j0 > $DEST_PATH/texinfo.json

View File

@ -125,6 +125,8 @@ export default class PreviewContext {
"switch (message.command) {" + "switch (message.command) {" +
"case 'goto':" + "case 'goto':" +
"window.location.hash = message.value;" + "window.location.hash = message.value;" +
// We may want to scroll to the same node again.
"history.pushState('', '', window.location.pathname);" +
"break;" + "break;" +
"}" + "}" +
"})"; "})";