diff --git a/AUTHORS b/AUTHORS index de9dbf2..8f2ec28 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,4 +1,4 @@ -# This is the list of vscode-interactive-graphviz's significant contributors. +# This is the list of vscode-interactive-graphviz-ambreeze's significant contributors. # # This does not necessarily list everyone who has contributed code, # especially since many employees of one corporation may be contributing. @@ -9,3 +9,4 @@ # tintinweb (http://github.com/tintinweb) bigbug (http://github.com/bigbug) +ambreeze (https://github.com/ambreeze) \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ef275e..62321f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,170 +1,5 @@ # Change Log -## 0.3.5 -- new: show preview for node shapes - #137 - - Note: to enable, wait for the suggestion box to appear and click on the `>` to expand the preview +## 1.0.0 -![node-shape-preview](https://user-images.githubusercontent.com/27259/197874676-2f0d502e-622d-4cd5-87da-f0deea744d8c.png) -- update: dependencies - -## 0.3.4 -- fix: A bug could lead to the web view crashing when another extension created a DOT document (with automatically open enabled) and then executes the preview command - #138 - -## 0.3.3 -- update: API - Allow caller to define view options (preserveFocus, vieColumn) - #132 -- fix: "openAutomatically" creates a new URI object. When revealing the graph for an already rendered `.dot` file the extension would open another render view because the lookup if the panel already exists fails as `vscode.URI` objects are not singletons (`new vscode.Uri("hi") != new vscode.Uri("hi")`. in order to fix this we now index `vscode.Uri.toString()` in the `URI -> panelObject` mapping. - #131 #132 -- update: dependencies - -## 0.3.2 - -- new: Added option for not focusing on the newly created preview (focus stays on the editor) (default: `true`, setting: `graphviz-interactive-preview.preserveFocus`) - #125 -- new: Automatically open the preview when opening files with the DOT-Language (default: `true`, setting: `graphviz-interactive-preview.openAutomatically`) - #122 -- new: Added (experimental) configuration option to use VSCode's Theme Colors (default: `false`, setting: `graphviz-interactive-preview.view.themeColors`) - #72 #120 -- new: given an URI and no content the content is read from the URI - #119 -- fix: Also Dim Node Background color - #115 -- update: dependencies - -## 0.3.1 - -- new: Switch to URI identification instead of document identification. Improves API. - #114 -- fix: Introduce condense formatting option - #111 -- update: dependencies - -## 0.3.0 - -- new: Outline View now shows an outline of the graph file. (using a parser lib with a fallback to regex symbol extraction under the hood) - #97 - -image - -- new: Auto Formatting for dot files - #99 - - Cmd + Shift + P: `Format Document` - -image - - - -## 0.2.1 - -- new: Symbols, Rename and References (fixes #79) - #94 - - suggest proper symbols (Press `Ctrl+P` and afterwards enter `@`) - -Screenshot 2022-04-13 at 23 36 20 - - - renaming - -Screenshot 2022-04-13 at 23 38 42 - - - references - -Screenshot 2022-04-13 at 23 40 07 - -- new: Improved toolbar styling for different themes - #100 - -Screenshot 2022-04-15 at 12 07 57 - -Screenshot 2022-04-15 at 12 09 06 - -Screenshot 2022-04-15 at 12 08 43 - -- fix: Keep search bar while rendering - #102 fixes #101 - -- update: Documentation information on Hover and on CodeCompletion have been harmonised - #103 - - -## 0.2.0 - -- new: Implements Selection of Render Engine - #85 fixes #69 - -Screenshot 2022-03-31 at 22 46 36 - -- new: Provide color decorator - #86 fixes #77 - -image - -- new: Hover Information - #88 fixes #76 - -Screenshot 2022-04-01 at 13 05 39 - -- fix: Clicking on the background brings it to foreground, covering the nodes - #90 fixes #70 - -- new: Show Diagnostic errors in the editor's "Problems" view - #89 fixes #75 - -image - -- new: Improved CompletionProvider - #91 -- update: Webview UI toolkit updated to 1.0.0 #92 - -## 0.1.2 -- new: active editor window: context menu -> Preview Graphviz / DOT (beside) - #67 - -image - -- new: button for editor title - #67 - -image - - -## 0.1.1 -- new: the extension now bundles dot language support, syntax highlighting, snippets from [vscode-graphviz](https://github.com/joaompinto/vscode-graphviz/) with permission from the author [@joaompinto](https://github.com/joaompinto) - #62 -- new: completion provider - #62 -- new: Allow case insensitive matching in search - #64, #65 - -image - -## 0.1.0 ๐Ÿš€ -- new: the code is now licensed as GPLv3. Feel free to reach out if you have any questions - #54 -- new: vscode style user interface for the render window - #41 (thanks @bigbug) -- new: code refactored to typescript - #45 (thanks @bigbug) -- new: the extension is now compatible with the vscode web IDE (https://github.dev / https://vscode.dev) - #49 (thanks @bigbug) - - ![graphviz-web](https://user-images.githubusercontent.com/2865694/150638292-1967020e-7ad9-409d-b91f-8f7ae3598827.gif) - - -- new: improved search (nodes/edges); edge multi-selection - #51 (thanks @bigbug) -- fix: overlapping toolbar - #55 #56 (thanks @bigbug) -- fix: dev: npm install may fail on first checkout - #53 -- fix: svg export does not escape angle brackets in node labels #11, #61 - -## 0.0.13 -- new: show graphviz/dot error messages in preview - #26 (thanks @bigbug) -- new: configurable node highlight mode (Upstream/Downstream/Bidirectional) - #29 (thanks @bigbug) -- new: support port-based highlighting - #25 (thanks @bigbug) -- fix: inconsistent clicking behavior when highlighting node - fixes #21 #33 with changes of #34 (thanks @bigbug) -- fix: highlighting of multiple edges with same label - fixes #12, changeset of #30 (thanks @bigbug) -- new: show rendering progress in vscode - #36, #37, #42 (thanks @bigbug) -- new: updated dependencies and switched to WASM - #32 (thanks @bigbug) -- new: changed UI to use VS Code's Webview UI toolkit - #28 (thanks @bigbug) - -## 0.0.12 -- new: (API callback consumer) provide svg node attribs to callback for `onClick`, `onDblClick` events - #18 - -## 0.0.11 -- fix: graph not rendering after vscode update 1.56.0 - #15 - -## 0.0.10 -- optionally allow multiple graph windows per document - fixes #13 (thanks @kaftejiman) -- optionally allow customizing the render window title (default: filename of the document that's been passed in) - -## 0.0.9 -- Adopt VS Code's 'asWebviewUri' API #7 - -## 0.0.7 - 0.0.8 -- โ—breaking change: - - render command renamed from `interactive-graphviz.preview.beside` to `graphviz-interactive-preview.preview.beside` -- More control of behavior; Various fixes; Support for: render-lock, debouncing, inter-render interval; More in-code docs. #6 - thanks @michkot - -## 0.0.6 -- fix: tracing does not work after changing graph and re-rendering it #3 -- fix: rendering for .dot files if graphviz language support is not installed. update graph for `languageId==DOT` or `filename.endsWith(DOT)`. might still not refresh for unsaved files. #4 - -## 0.0.5 -- Add support for VSCode on Windows - - change toolbar style to orange (okay for dark/light themes) - - wait for page to load and then ask to render dot - - normalize all path handling to work on both os's - -## 0.0.4 -- allow to export the current graph as `svg` or `dot` - -## 0.0.1 - 0.0.3 -- Initial release +- Initial release of my version diff --git a/README.md b/README.md index 50c2141..6e0ebd5 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,7 @@ [[ ๐ŸŒ ](https://diligence.consensys.net) [ ๐Ÿ“ฉ ](mailto:diligence@consensys.net) [ ๐Ÿ”ฅ ](https://consensys.github.io/diligence/)]

-[![Version](https://vsmarketplacebadge.apphb.com/version/tintinweb.graphviz-interactive-preview.svg)](https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview) -[![Installs](https://vsmarketplacebadge.apphb.com/installs/tintinweb.graphviz-interactive-preview.svg)](https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview) -[![Ratings](https://vsmarketplacebadge.apphb.com/rating/tintinweb.graphviz-interactive-preview.svg)](https://vsmarketplacebadge.apphb.com/rating/tintinweb.graphviz-interactive-preview.svg) + # Graphviz Interactive Preview (Visual Studio Code Extension) diff --git a/package.json b/package.json index d902e98..4284f9f 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { - "name": "graphviz-interactive-preview", - "displayName": "Graphviz Interactive Preview", - "description": "Graphviz (dot) Interactive Preview", - "version": "0.3.5", + "name": "graphviz-interactive-preview-ambreeze", + "displayName": "Graphviz Interactive Preview Ambreeze", + "description": "Graphviz (dot) Interactive Preview with Correct Attribute Formatting", + "version": "1.0.0", "keywords": [ "dot", "graphviz", "preview", "interactive" ], - "publisher": "tintinweb", + "publisher": "ambreeze", "license": "GPLv3", "icon": "images/icon.png", "engines": { @@ -19,11 +19,11 @@ "Programming Languages" ], "bugs": { - "url": "https://github.com/tintinweb/vscode-interactive-graphviz/issues" + "url": "https://github.com/ambreeze/vscode-interactive-graphviz-ambreeze/issues" }, "repository": { "type": "git", - "url": "https://github.com/tintinweb/vscode-interactive-graphviz" + "url": "https://github.com/ambreeze/vscode-interactive-graphviz-ambreeze" }, "main": "./dist/extension.js", "browser": "./dist/extension.js", @@ -87,7 +87,7 @@ ] }, "configuration": { - "title": "Graphviz Interactive Preview", + "title": "Graphviz Interactive Preview - ambreeze", "properties": { "graphviz-interactive-preview.openAutomatically": { "type": "boolean", diff --git a/src/language/DocumentFormatter.ts b/src/language/DocumentFormatter.ts index 395471a..4dc7911 100644 --- a/src/language/DocumentFormatter.ts +++ b/src/language/DocumentFormatter.ts @@ -36,7 +36,7 @@ class Compiler { } protected printAttribute(ast: AST.Attribute): string { - return `${this.stringify(ast.key)} = ${this.stringify(ast.value)};`; + return `${this.stringify(ast.key)} = ${this.stringify(ast.value)},`; } protected printAttributes(ast: AST.Attributes): string {