Closed gschaffner closed 1 year ago
Fixed, and add git tag for v0.4.8. It seems that I skipped v0.4.7
thanks!
from the history of package.json
, it appears v0.4.7 was skipped, but there is a v0.4.7 in the version history at https://marketplace.visualstudio.com/items?itemName=tecosaur.latex-utilities:
diff --git a/tecosaur.latex-utilities-0.4.6/extension/package.json b/tecosaur.latex-utilities-0.4.7/extension/package.json
index 19bc4ea..48d0d12 100644
--- a/tecosaur.latex-utilities-0.4.6/extension/package.json
+++ b/tecosaur.latex-utilities-0.4.7/extension/package.json
@@ -3,7 +3,7 @@
"displayName": "LaTeX Utilities",
"description": "An add-on to LaTeX Workshop that provides some fancy features that are less vital to the basic experience editing a LaTeX document, but can be rather nice to have.",
"icon": "icon.png",
- "version": "0.4.6",
+ "version": "0.4.7",
"publisher": "tecosaur",
"license": "MIT",
"homepage": "https://github.com/tecosaur/LaTeX-Utilities",
@@ -12,7 +12,7 @@
"url": "https://github.com/tecosaur/LaTeX-Utilities.git"
},
"engines": {
- "vscode": "^1.45.1"
+ "vscode": "^1.63.1"
},
"categories": [
"Programming Languages",
diff --git a/tecosaur.latex-utilities-0.4.6/extension/scripts/saveclipimg-pc.ps1 b/tecosaur.latex-utilities-0.4.7/extension/scripts/saveclipimg-pc.ps1
index 33a92aa..afd4d40 100644
--- a/tecosaur.latex-utilities-0.4.6/extension/scripts/saveclipimg-pc.ps1
+++ b/tecosaur.latex-utilities-0.4.7/extension/scripts/saveclipimg-pc.ps1
@@ -5,23 +5,47 @@ param($imagePath)
# Adapted from https://github.com/octan3/img-clipboard-dump/blob/master/dump-clipboard-png.ps1
Add-Type -Assembly PresentationCore
-$img = [Windows.Clipboard]::GetImage()
-if ($img -eq $null) {
- "no image"
- Exit 1
-}
+if ($PSVersionTable.PSVersion.Major -ge 5 -and $PSVersionTable.PSVersion.Major -ge 1)
+{
+ $file = Get-Clipboard -Format FileDropList
+ if ($file -ne $null) {
+ $img = new-object System.Drawing.Bitmap($file[0].Fullname)
+ } else {
+ $img = Get-Clipboard -Format Image
+ }
+
+ if ($img -eq $null) {
+ "no image"
+ Exit 1
+ }
+
+ if (-not $imagePath) {
+ "no image"
+ Exit 1
+ }
-if (-not $imagePath) {
- "no image"
- Exit 1
+ $img.save($imagePath)
}
+else
+{
+ $img = [Windows.Clipboard]::GetImage()
+ if ($img -eq $null) {
+ "no image"
+ Exit 1
+ }
-$fcb = new-object Windows.Media.Imaging.FormatConvertedBitmap($img, [Windows.Media.PixelFormats]::Rgb24, $null, 0)
-$stream = [IO.File]::Open($imagePath, "OpenOrCreate")
-$encoder = New-Object Windows.Media.Imaging.PngBitmapEncoder
-$encoder.Frames.Add([Windows.Media.Imaging.BitmapFrame]::Create($fcb)) | out-null
-$encoder.Save($stream) | out-null
-$stream.Dispose() | out-null
+ if (-not $imagePath) {
+ "no image"
+ Exit 1
+ }
+
+ $fcb = new-object Windows.Media.Imaging.FormatConvertedBitmap($img, [Windows.Media.PixelFormats]::Rgb24, $null, 0)
+ $stream = [IO.File]::Open($imagePath, "OpenOrCreate")
+ $encoder = New-Object Windows.Media.Imaging.PngBitmapEncoder
+ $encoder.Frames.Add([Windows.Media.Imaging.BitmapFrame]::Create($fcb)) | out-null
+ $encoder.Save($stream) | out-null
+ $stream.Dispose() | out-null
+}
$imagePath
diff --git a/tecosaur.latex-utilities-0.4.6/extension.vsixmanifest b/tecosaur.latex-utilities-0.4.7/extension.vsixmanifest
index 90f07c8..bf3cf1a 100644
--- a/tecosaur.latex-utilities-0.4.6/extension.vsixmanifest
+++ b/tecosaur.latex-utilities-0.4.7/extension.vsixmanifest
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
- <Identity Language="en-US" Id="latex-utilities" Version="0.4.6" Publisher="tecosaur" />
+ <Identity Language="en-US" Id="latex-utilities" Version="0.4.7" Publisher="tecosaur" />
<DisplayName>LaTeX Utilities</DisplayName>
<Description xml:space="preserve">An add-on to LaTeX Workshop that provides some fancy features that are less vital to the basic experience editing a LaTeX document, but can be rather nice to have.</Description>
<Tags>latex,tex,hint,keybindings,json,doctex</Tags>
@@ -9,12 +9,12 @@
<GalleryFlags>Public</GalleryFlags>
<Properties>
- <Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.45.1" />
+ <Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.63.1" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="workspace" />
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
-
+ <Property Id="Microsoft.VisualStudio.Code.PreRelease" Value="true" />
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/tecosaur/LaTeX-Utilities.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/tecosaur/LaTeX-Utilities.git" />
That should be the merge commit for #363
Added changelog entry for v0.4.7. I remembered that my gpg smart card was broken for a long time, I think that's why I didn't commit this version
thanks!
hi! it looks like
CHANGELOG.md
has not been updated since v0.4.6.git tags for v0.4.7 and v0.4.8 are also missing.