-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Git release only for 1.0.99 == 2.0.0 preview1
- Loading branch information
1 parent
dd41282
commit 26547ea
Showing
17 changed files
with
666 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"comments": { | ||
"lineComment": "//", | ||
"blockComment": [ "////", "////" ] | ||
}, | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["<", ">"] | ||
], | ||
"autoClosingPairs": [ | ||
{ "open": "{", "close": "}" }, | ||
{ "open": "[", "close": "]" }, | ||
{ "open": "(", "close": ")" }, | ||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] }, | ||
{ "open": "\"", "close": "\"", "notIn": ["string"] }, | ||
{ "open": "`", "close": "`", "notIn": ["string", "comment"] }, | ||
{ "open": "/**", "close": " */", "notIn": ["string"] }, | ||
{ "open": "////", "close": " ////", "notIn": ["string", "comment"] } | ||
], | ||
"surroundingPairs": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"], | ||
["<", ">"], | ||
["'", "'"], | ||
["\"", "\""], | ||
["`", "`"] | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,21 +2,21 @@ | |
"name": "asciidoctor-vscode", | ||
"displayName": "%displayName%", | ||
"description": "%description%", | ||
"version": "1.0.0", | ||
"version": "1.0.99", | ||
"publisher": "joaompinto", | ||
"author": "João Pinto <[email protected]>", | ||
"license": "MIT", | ||
"readme": "README.md", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/joaompinto/asciidoctor-vscode" | ||
"url": "https://github.com/asciidoctor/asciidoctor-vscode" | ||
}, | ||
"galleryBanner": { | ||
"color": "#78d6f0", | ||
"theme": "light" | ||
}, | ||
"bugs": "https://github.com/joaompinto/asciidoctor-vscode/issues", | ||
"homepage": "https://github.com/joaompinto/asciidoctor-vscode/blob/master/README.md", | ||
"bugs": "https://github.com/asciidoctor/asciidoctor-vscode/issues", | ||
"homepage": "https://github.com/asciidoctor/asciidoctor-vscode/blob/master/README.md", | ||
"icon": "images/icon.png", | ||
"main": "./out/src/extension", | ||
"engines": { | ||
|
@@ -26,15 +26,16 @@ | |
"Programming Languages" | ||
], | ||
"activationEvents": [ | ||
"onLanguage:asciidoc", | ||
"onLanguage:asciidoc", | ||
"onCommand:asciidoc.exportAsPDF", | ||
"onCommand:asciidoc.pasteImage", | ||
"onCommand:asciidoc.preview.toggleLock", | ||
"onCommand:asciidoc.preview.refresh", | ||
"onCommand:asciidoc.showPreview", | ||
"onCommand:asciidoc.showPreviewToSide", | ||
"onCommand:asciidoc.showLockedPreviewToSide", | ||
"onCommand:asciidoc.showSource", | ||
"onCommand:asciidoc.showPreviewSecuritySelector", | ||
"onCommand:asciidoc.exportAsPDF", | ||
"onWebviewPanel:asciidoc.preview" | ||
], | ||
"contributes": { | ||
|
@@ -48,7 +49,8 @@ | |
"extensions": [ | ||
".adoc", | ||
".ad", | ||
".asciidoc" | ||
".asciidoc", | ||
".asc" | ||
], | ||
"configuration": "./asciidoc-language-configuration.json" | ||
} | ||
|
@@ -69,6 +71,15 @@ | |
"light": "./media/Preview.svg", | ||
"dark": "./media/Preview_inverse.svg" | ||
} | ||
}, | ||
{ | ||
"command": "asciidoc.pasteImage", | ||
"title": "%asciidoc.pasteImage.title%", | ||
"category": "AsciiDoc", | ||
"icon": { | ||
"light": "./media/Preview.svg", | ||
"dark": "./media/Preview_inverse.svg" | ||
} | ||
}, | ||
{ | ||
"command": "asciidoc.showPreview", | ||
|
@@ -219,6 +230,11 @@ | |
"title": "asciidoc", | ||
"order": 20, | ||
"properties": { | ||
"asciidoc.asciidoctor_command": { | ||
"type": "string", | ||
"default": "asciidoctor", | ||
"description": "Full path for the asciidoctor binary/executable" | ||
}, | ||
"asciidoc.styles": { | ||
"type": "array", | ||
"default": [], | ||
|
@@ -322,7 +338,7 @@ | |
"asciidoc.use_asciidoctor_js": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Use asciidoctor js instead of the 'html_generator'" | ||
"description": "Use asciidoctor js instead of the 'asciidoctor_command'" | ||
} | ||
} | ||
}, | ||
|
@@ -371,8 +387,6 @@ | |
"ts-loader": "^4.0.1" | ||
}, | ||
"dependencies": { | ||
"highlight.js": "9.12.0", | ||
"markdown-it": "^8.4.1", | ||
"asciidoctor.js": "^1.5.6-preview.5", | ||
"copy-paste": "^1.2.0", | ||
"file-url": "^1.0.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Command } from '../commandManager'; | ||
import * as path from 'path'; | ||
import { Logger, Paster } from '../image-paste'; | ||
|
||
|
||
export class PasteImage implements Command { | ||
public readonly id = 'asciidoc.pasteImage'; | ||
|
||
public execute() { | ||
try { | ||
Paster.paste(); | ||
} catch (e) { | ||
Logger.showErrorMessage(e) | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.