Skip to content

Commit

Permalink
fix: rm deprecated win32-ia32 from vscode targets (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
astahmer authored May 21, 2024
1 parent 569bb6b commit 175950a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/vsix-builder/src/vsce/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ function isHostTrusted(url: url.URL): boolean {

export const Targets = new Set([
'win32-x64',
'win32-ia32',
'win32-arm64',
'linux-x64',
'linux-arm64',
Expand All @@ -329,7 +328,10 @@ export const Targets = new Set([
])

class ManifestProcessor extends BaseProcessor {
constructor(manifest: Manifest, private readonly options: IPackageOptions = {}) {
constructor(
manifest: Manifest,
private readonly options: IPackageOptions = {},
) {
super(manifest)

const flags = ['Public']
Expand Down Expand Up @@ -709,7 +711,7 @@ class MarkdownProcessor extends BaseProcessor {

if (ownerAndRepositoryName) {
// prettier-ignore
[owner, repositoryName] = ownerAndRepositoryName.split('/', 2)
;[owner, repositoryName] = ownerAndRepositoryName.split('/', 2)

Check failure on line 714 in packages/vsix-builder/src/vsce/package.ts

View workflow job for this annotation

GitHub Actions / ESLint

Unnecessary semicolon
}

if (owner && repositoryName && issueNumber) {
Expand Down Expand Up @@ -980,8 +982,8 @@ function getExtensionKind(manifest: Manifest): ExtensionKind[] {
const result: ExtensionKind[] = Array.isArray(manifest.extensionKind)
? manifest.extensionKind
: manifest.extensionKind === 'ui'
? ['ui', 'workspace']
: [manifest.extensionKind]
? ['ui', 'workspace']
: [manifest.extensionKind]

// Add web kind if the extension can run as web extension
if (deduced.includes('web') && !result.includes('web')) {
Expand Down Expand Up @@ -1127,8 +1129,8 @@ async function toVsixManifest(vsix: VSIX): Promise<string> {
<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="${escape(vsix.id)}" Version="${escape(vsix.version)}" Publisher="${escape(
vsix.publisher,
)}" ${vsix.target ? `TargetPlatform="${escape(vsix.target)}"` : ''}/>
vsix.publisher,
)}" ${vsix.target ? `TargetPlatform="${escape(vsix.target)}"` : ''}/>
<DisplayName>${escape(vsix.displayName)}</DisplayName>
<Description xml:space="preserve">${escape(vsix.description)}</Description>
<Tags>${escape(vsix.tags)}</Tags>
Expand Down

0 comments on commit 175950a

Please sign in to comment.