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

Commit 34f90ba

Browse files
committed
Hotfix release: fixes autocompletion
1 parent cea8862 commit 34f90ba

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3+
## 2.4.3
4+
* Hotfix release: fixes autocompletion
5+
36
## 2.4.2
7+
*Broken release*
48
* Dummy module did always precede real ones leading to bad completion behavior
59

610
## 2.4.1

package.json

Lines changed: 1 addition & 1 deletion
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.4.2",
11+
"version": "2.4.3",
1212
"publisher": "vknabel",
1313
"icon": "icons/icon.png",
1414
"galleryBanner": {

src/server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function gatherAllSwiftFilesInPath(root: string): string[] {
9494
export function getAllSourcePaths(srcPath: string): string[] {
9595
const sp = path.dirname(srcPath)
9696
for (let [moduleName, modulePath] of allModulePaths) {
97-
if (moduleName != null && path.normalize(modulePath) === path.normalize(sp)) {
97+
if (moduleName != null && path.normalize(sp).includes(path.normalize(modulePath))) {
9898
let ss = allModuleSources.get(moduleName)
9999
// trace("**getAllDocumentPaths** ", Array.from(ss).join(","))
100100
return Array.from(ss)

0 commit comments

Comments
 (0)