Skip to content

Commit 175950a

Browse files
authored
fix: rm deprecated win32-ia32 from vscode targets (#57)
1 parent 569bb6b commit 175950a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

packages/vsix-builder/src/vsce/package.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ function isHostTrusted(url: url.URL): boolean {
316316

317317
export const Targets = new Set([
318318
'win32-x64',
319-
'win32-ia32',
320319
'win32-arm64',
321320
'linux-x64',
322321
'linux-arm64',
@@ -329,7 +328,10 @@ export const Targets = new Set([
329328
])
330329

331330
class ManifestProcessor extends BaseProcessor {
332-
constructor(manifest: Manifest, private readonly options: IPackageOptions = {}) {
331+
constructor(
332+
manifest: Manifest,
333+
private readonly options: IPackageOptions = {},
334+
) {
333335
super(manifest)
334336

335337
const flags = ['Public']
@@ -709,7 +711,7 @@ class MarkdownProcessor extends BaseProcessor {
709711

710712
if (ownerAndRepositoryName) {
711713
// prettier-ignore
712-
[owner, repositoryName] = ownerAndRepositoryName.split('/', 2)
714+
;[owner, repositoryName] = ownerAndRepositoryName.split('/', 2)
713715
}
714716

715717
if (owner && repositoryName && issueNumber) {
@@ -980,8 +982,8 @@ function getExtensionKind(manifest: Manifest): ExtensionKind[] {
980982
const result: ExtensionKind[] = Array.isArray(manifest.extensionKind)
981983
? manifest.extensionKind
982984
: manifest.extensionKind === 'ui'
983-
? ['ui', 'workspace']
984-
: [manifest.extensionKind]
985+
? ['ui', 'workspace']
986+
: [manifest.extensionKind]
985987

986988
// Add web kind if the extension can run as web extension
987989
if (deduced.includes('web') && !result.includes('web')) {
@@ -1127,8 +1129,8 @@ async function toVsixManifest(vsix: VSIX): Promise<string> {
11271129
<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">
11281130
<Metadata>
11291131
<Identity Language="en-US" Id="${escape(vsix.id)}" Version="${escape(vsix.version)}" Publisher="${escape(
1130-
vsix.publisher,
1131-
)}" ${vsix.target ? `TargetPlatform="${escape(vsix.target)}"` : ''}/>
1132+
vsix.publisher,
1133+
)}" ${vsix.target ? `TargetPlatform="${escape(vsix.target)}"` : ''}/>
11321134
<DisplayName>${escape(vsix.displayName)}</DisplayName>
11331135
<Description xml:space="preserve">${escape(vsix.description)}</Description>
11341136
<Tags>${escape(vsix.tags)}</Tags>

0 commit comments

Comments
 (0)