Skip to content

Commit e4500d6

Browse files
authored
Rename extension ID from swiftlang.swift to swiftlang.swift-vscode (#1358)
Try this one more time. Because there is already another extension with `swift` as its name, and the VS Code Marketplace name must be unique (not just the full ID), switch to the extension ID `swiftlang.swift-vscode`.
1 parent 89c52fc commit e4500d6

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## 2.0.0 - 2025-01-28
44

5-
The Swift extension for VS Code has moved to the [official swiftlang organization in the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=swiftlang.swift)!
6-
The new extension id is `swiftlang.swift`.
5+
The Swift extension for VS Code has moved to the [official swiftlang organization in the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=swiftlang.swift-vscode)!
6+
The new extension id is `swiftlang.swift-vscode`.
77

88
### Added
99

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ If you haven't already, follow the instructions in [Development](#development) t
4444
npm run dev-package
4545
```
4646

47-
This builds a file that looks like `swift-[version]-dev.vsix`. Now install the extension with:
47+
This builds a file that looks like `swift-vscode-[version]-dev.vsix`. Now install the extension with:
4848

4949
```sh
50-
code --install-extension swift-[version]-dev.vsix
50+
code --install-extension swift-vscode-[version]-dev.vsix
5151
```
5252

5353
Alternatively you can install the extension from the Extensions panel by clicking the `...` button at the top of the panel and choosing `Install from VSIX...`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To give clarity of what is expected of our members, Swift has adopted the code o
2424

2525
## Installation
2626

27-
For the extension to work, you must have Swift installed on your system. Please see the [Getting Started Guide on Swift.org](https://www.swift.org/getting-started/) for details on how to install Swift on your system. Install the extension from [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=swiftlang.swift) and open a Swift package! You'll be prompted to install and configure the CodeLLDB extension, which you should do so.
27+
For the extension to work, you must have Swift installed on your system. Please see the [Getting Started Guide on Swift.org](https://www.swift.org/getting-started/) for details on how to install Swift on your system. Install the extension from [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=swiftlang.swift-vscode) and open a Swift package! You'll be prompted to install and configure the CodeLLDB extension, which you should do so.
2828

2929
## Features
3030

docs/remote-dev.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ First create the directory. Next, create `devcontainer.json` and insert the foll
2121
"name": "Swift 5.5",
2222
"image": "swift:5.5",
2323
"extensions": [
24-
"swiftlang.swift"
24+
"swiftlang.swift-vscode"
2525
],
2626
"settings": {
2727
"lldb.library": "/usr/lib/liblldb.so"
@@ -73,7 +73,7 @@ Your `devcontainer.json` should look something like this
7373
"service": "app",
7474
"workspaceFolder": "/workspace",
7575
"extensions": [
76-
"swiftlang.swift",
76+
"swiftlang.swift-vscode",
7777
],
7878
"settings": {
7979
"lldb.library": "/usr/lib/liblldb.so"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "swift",
3-
"displayName": "Swift",
2+
"name": "swift-vscode",
3+
"displayName": "Swift Programming Language",
44
"description": "Swift Language Support for Visual Studio Code.",
55
"version": "2.0.0",
66
"publisher": "swiftlang",

test/integration-tests/ExtensionActivation.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ suite("Extension Activation/Deactivation Tests", () => {
3333

3434
async function activate(currentTest?: Mocha.Test) {
3535
assert.ok(await activateExtension(currentTest), "Extension did not return its API");
36-
const ext = vscode.extensions.getExtension("swiftlang.swift");
36+
const ext = vscode.extensions.getExtension("swiftlang.swift-vscode");
3737
assert.ok(ext, "Extension is not found");
3838
assert.strictEqual(ext.isActive, true);
3939
}
@@ -57,7 +57,7 @@ suite("Extension Activation/Deactivation Tests", () => {
5757
test("Deactivation", async function () {
5858
const workspaceContext = await activateExtension(this.test as Mocha.Test);
5959
await deactivateExtension();
60-
const ext = vscode.extensions.getExtension("swiftlang.swift");
60+
const ext = vscode.extensions.getExtension("swiftlang.swift-vscode");
6161
assert(ext);
6262
assert.equal(workspaceContext.subscriptions.length, 0);
6363
});

test/integration-tests/utilities/testutilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const extensionBootstrapper = (() => {
129129
`Extension is already activated. Last test that activated the extension: ${lastTestName}`
130130
);
131131
}
132-
const extensionId = "swiftlang.swift";
132+
const extensionId = "swiftlang.swift-vscode";
133133
const ext = vscode.extensions.getExtension<Api>(extensionId);
134134
if (!ext) {
135135
throw new Error(`Unable to find extension "${extensionId}"`);
@@ -138,7 +138,7 @@ const extensionBootstrapper = (() => {
138138
let workspaceContext: WorkspaceContext | undefined;
139139

140140
// We can only _really_ call activate through
141-
// `vscode.extensions.getExtension<Api>("swiftlang.swift")` once.
141+
// `vscode.extensions.getExtension<Api>("swiftlang.swift-vscode")` once.
142142
// Subsequent activations must be done through the returned API object.
143143
if (!activator) {
144144
activatedAPI = await ext.activate();

0 commit comments

Comments
 (0)