From 754e6a2fda565bc370e2a7ae5237e6651c5b458c Mon Sep 17 00:00:00 2001 From: Leon Brocard Date: Tue, 3 Oct 2023 13:34:57 +0100 Subject: [PATCH] Use # for comments rather than // "Toggle Line Comment" now adds `#` rather than `//`. --- CHANGELOG.md | 8 +++++++- language-configuration.json | 20 ++++++++++---------- package.json | 6 ++++-- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d20fcb2..42dcdcc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,13 @@ All notable changes to the "vscode-fastly-vcl" extension will be documented in t Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. -## UNRELEASED +## [2.0.1] - 2023-10-03 + +### Changed + +- "Toggle Line Comment" now adds `#` rather than `//`. + +## [2.0.0] - 2023-09-23 ### Added diff --git a/language-configuration.json b/language-configuration.json index 5f6129b..618c178 100644 --- a/language-configuration.json +++ b/language-configuration.json @@ -1,7 +1,7 @@ { "comments": { // symbol used for single line comment - "lineComment": "//", + "lineComment": "#", // symbols used for start and end a block comment. "blockComment": ["/*", "*/"] }, @@ -13,9 +13,9 @@ ], // symbols that are auto closed when typing "autoClosingPairs": [ - { "open": "{", "close": "}"}, - { "open": "[", "close": "]"}, - { "open": "(", "close": ")"}, + { "open": "{", "close": "}" }, + { "open": "[", "close": "]" }, + { "open": "(", "close": ")" }, { "open": "\"", "close": "\"", "notIn": ["string"] }, { "open": "'", "close": "'", "notIn": ["string", "comment"] } ], @@ -29,14 +29,14 @@ ], // folding ranges "folding": { - "markers": { - "start": "^\\s*//\\s*#?region\\b", - "end": "^\\s*//\\s*#?endregion\\b" - } + "markers": { + "start": "^\\s*//\\s*#?region\\b", + "end": "^\\s*//\\s*#?endregion\\b" + } }, // auto-indentation "indentationRules": { - "increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$", - "decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$" + "increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$", + "decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$" } } diff --git a/package.json b/package.json index 3438ee2..03db4c9 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,16 @@ "type": "git", "url": "https://github.com/fastly/vscode-fastly-vcl.git" }, - "version": "2.0.0", + "version": "2.0.1", "engines": { "vscode": "^1.82.0", "node": ">=18" }, "activationEvents": [], "main": "./client/out/extension", - "workspaces": [ "./client" ], + "workspaces": [ + "./client" + ], "scripts": { "test": "node ./test/runTest.mjs", "vscode:prepublish": "npm run compile",