Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 8d6d1a9

Browse files
committed
Upgraded dependencies
1 parent d36a690 commit 8d6d1a9

16 files changed

+1886
-1284
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
## Unreleased
44

5+
-
6+
7+
## 2.12.0
8+
59
- Better and more helpful error messages on first start
10+
- Upgraded dependencies
611

712
## 2.11.2
813

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ Though in most cases sourcekit-lsp and sourcekite should produce better results
6363
## Configuration
6464

6565
| Config | Type | Default | Description |
66-
| ---------------------------------- | ---------- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
66+
| ---------------------------------- | ---------- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
6767
| `sourcekit-lsp.serverPath` | `string` | | The path of the sourcekit-lsp executable. In SDE: defaults to the toolchain's sourcekit-lsp. |
68-
| `sourcekit-lsp.toolchainPath` | `string` | | The path of the swift toolchain. In SDE: defaults to Xcode's default toolchain. |
68+
| `sourcekit-lsp.toolchainPath` | `string` | | The path of the swift toolchain. In SDE: defaults to Xcode's default toolchain. |
6969
| `swift.languageServerPath` | `string` | `/usr/local/bin/langserver-swift` | [DEPRECATED] The fully qualified path to the Swift Language Server executable. |
7070
| `swift.path.sourcekite` | `string` | | The fully path to the sourcekite(SDE's LS backend). |
7171
| `swift.path.swift_driver_bin` | `string` | `/usr/bin/swift` | The fully path to the swift driver binary. |
7272
| `swift.path.shell` | `string` | `/bin/sh` | The fully path to the shell binary. |
73-
| `sde.sourcekit.compilerOptions` | `string[]` | `[]` | Optional compiler options like the target or search paths. Will only be used as default. `(debug|release).yaml` builds will override these settings. |
73+
| `sde.sourcekit.compilerOptions` | `string[]` | `[]` | Optional compiler options like the target or search paths. Will only be used as default. `(debug | release).yaml` builds will override these settings. |
7474
| `swift.targets` | `object[]` | `[]` | If SDE cannot reliably detect all targets, you can manually configure them. |
7575
| `sde.enable` | `boolean` | `true` | Enable SDE functionality |
7676
| `sde.languageServerMode` | `string` | `sourcekite` | Decides which language server should be used. `sourcekite` is the default LSP for SDE, `sourcekit-lsp` is Apple's official one and `langserver` is RLovelett's Langserver. |

package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/vknabel"
99
},
1010
"license": "Apache-2.0",
11-
"version": "2.11.2",
11+
"version": "2.12.0",
1212
"publisher": "vknabel",
1313
"icon": "icons/icon.png",
1414
"galleryBanner": {
@@ -20,7 +20,7 @@
2020
"url": "https://github.com/vknabel/vscode-swift-development-environment"
2121
},
2222
"engines": {
23-
"vscode": "^1.30.0"
23+
"vscode": "^1.54.0"
2424
},
2525
"categories": [
2626
"Programming Languages"
@@ -264,25 +264,26 @@
264264
},
265265
"devDependencies": {
266266
"@types/bunyan": "^1.8.4",
267-
"@types/glob": "^5.0.35",
268-
"@types/jest": "^24.0.18",
269-
"@types/js-yaml": "^3.11.1",
270-
"@types/node": "^12.19.7",
271-
"@types/vscode": "1.30.0",
267+
"@types/glob": "^7.1.3",
268+
"@types/jest": "^26.0.20",
269+
"@types/js-yaml": "^4.0.0",
270+
"@types/node": "^14.14.33",
271+
"@types/vscode": "1.54.0",
272272
"@types/xml-js": "^1.0.0",
273-
"jest": "^24.9.0",
274-
"prettier": "^1.18.2",
275-
"ts-jest": "^24.0.2",
273+
"jest": "^26.6.3",
274+
"prettier": "^2.2.1",
275+
"ts-jest": "^26.5.3",
276276
"tsc": "^1.20150623.0",
277-
"typescript": "^4.1.2"
277+
"typescript": "^4.2.3"
278278
},
279279
"dependencies": {
280280
"bunyan": "^1.8.5",
281-
"fs-promise": "^1.0.0",
281+
"fs-promise": "^2.0.3",
282282
"glob": "^7.1.4",
283-
"js-yaml": "^3.13.1",
284-
"vscode-languageclient": "^5.2.1",
285-
"vscode-languageserver": "^5.2.1",
283+
"js-yaml": "^4.0.0",
284+
"vscode-languageclient": "^7.0.0",
285+
"vscode-languageserver": "^7.0.0",
286+
"vscode-languageserver-textdocument": "^1.0.1",
286287
"xml-js": "^1.6.11"
287288
},
288289
"jest": {

src/clientMain.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function activate(context: ExtensionContext) {
4343
commands.registerCommand("sde.commands.selectRun", () => {
4444
window
4545
.showInputBox({ prompt: "Run which target?", value: mostRecentRunTarget })
46-
.then(target => {
46+
.then((target) => {
4747
if (!target) {
4848
return;
4949
}
@@ -60,7 +60,7 @@ export async function activate(context: ExtensionContext) {
6060
);
6161

6262
workspace.onDidSaveTextDocument(
63-
document => {
63+
(document) => {
6464
if (tools.shouldBuildOnSave() && document.languageId === "swift") {
6565
toolchain.build();
6666
}
@@ -70,7 +70,7 @@ export async function activate(context: ExtensionContext) {
7070
);
7171

7272
// respond to settings changes
73-
workspace.onDidChangeConfiguration(async event => {
73+
workspace.onDidChangeConfiguration(async (event) => {
7474
if (
7575
event.affectsConfiguration("sde") ||
7676
event.affectsConfiguration("swift") ||

src/sourcekites-server/packages/available-packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { debugYamlPackage } from "./debug-yaml-package";
55
import { configPackage } from "./config-package";
66
import { flatteningTargetsWithUniqueSources } from "./package-helpers";
77

8-
export const availablePackages: Package = async fromPath => {
8+
export const availablePackages: Package = async (fromPath) => {
99
const [
1010
configTargets,
1111
debugYamlTargets,

src/sourcekites-server/packages/config-package.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { Current } from "../current";
44
import { Package } from "../package";
55
import { expandingSourceGlob } from "../path-helpers";
66

7-
export const configPackage: Package = async fromPath => {
7+
export const configPackage: Package = async (fromPath) => {
88
const targets = Current.config.targets
99
.filter(
1010
({ path: targetPath }) =>
1111
path.isAbsolute(targetPath) || fs.existsSync(path.resolve(fromPath, targetPath))
1212
)
13-
.map(async configTarget => {
13+
.map(async (configTarget) => {
1414
const targetPath = path.normalize(path.resolve(fromPath, configTarget.path));
1515
const expandedSources = (configTarget.sources || ["**/*.swift"]).map(
1616
expandingSourceGlob(fromPath, targetPath)

src/sourcekites-server/packages/debug-yaml-package.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface LLCommand {
2323
"other-args"?: string[];
2424
}
2525

26-
export const debugYamlPackage: Package = async fromPath => {
26+
export const debugYamlPackage: Package = async (fromPath) => {
2727
let debugContents: string;
2828
try {
2929
debugContents = await contentsOfDebugOrReleaseYaml(fromPath);
@@ -41,7 +41,7 @@ export const debugYamlPackage: Package = async fromPath => {
4141
name: command["module-name"] || name,
4242
path: fromPath, // actually a subfolder, but all paths are absolute
4343
sources: new Set(
44-
command.sources.map(toSource => path.normalize(path.resolve(fromPath, toSource)))
44+
command.sources.map((toSource) => path.normalize(path.resolve(fromPath, toSource)))
4545
),
4646
compilerArguments: compilerArgumentsForCommand(command),
4747
});

src/sourcekites-server/packages/description-package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface TargetDescription {
1212
sources: string[];
1313
}
1414

15-
export const descriptionPackage: Package = async fromPath => {
15+
export const descriptionPackage: Package = async (fromPath) => {
1616
try {
1717
const data = await Current.swift(fromPath, `package describe --type json`);
1818
const packageDescription = JSON.parse(data) as PackageDescription;

src/sourcekites-server/packages/package-helpers.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe("package helpers", () => {
5858
path: "./",
5959
sources: new Set(
6060
Array(uniqueTarget.sources.values()).map(
61-
sourceFile => `${uniqueTarget.path}/${sourceFile}`
61+
(sourceFile) => `${uniqueTarget.path}/${sourceFile}`
6262
)
6363
),
6464
};

src/sourcekites-server/packages/package-helpers.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ export function flatteningTargetsWithUniqueSources(...targets: Target[][]): Targ
1212
}
1313

1414
export function removingDuplicateSources(fromTargets: Target[], uniqueTargets: Target[]): Target[] {
15-
return fromTargets.map(target => {
15+
return fromTargets.map((target) => {
1616
const swiftFilesWithoutTargets = Array.from(target.sources).filter(
17-
source =>
18-
uniqueTargets.findIndex(desc => desc.sources.has(path.resolve(target.path, source))) === -1
17+
(source) =>
18+
uniqueTargets.findIndex((desc) => desc.sources.has(path.resolve(target.path, source))) ===
19+
-1
1920
);
2021
return { ...target, sources: new Set(swiftFilesWithoutTargets) };
2122
});
@@ -24,9 +25,9 @@ export function removingDuplicateSources(fromTargets: Target[], uniqueTargets: T
2425
function normalizedTarget(target: Target): Target {
2526
return {
2627
...target,
27-
sources: mapSet(target.sources, source => path.resolve(target.path, source)),
28+
sources: mapSet(target.sources, (source) => path.resolve(target.path, source)),
2829
};
2930
}
3031
function mapSet<T, R>(set: Set<T>, transform: (element: T) => R): Set<R> {
31-
return new Set(Array.from(set.values()).map(element => transform(element)));
32+
return new Set(Array.from(set.values()).map((element) => transform(element)));
3233
}

0 commit comments

Comments
 (0)