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

Commit

Permalink
Hotfix release: fixes autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Jun 4, 2018
1 parent cea8862 commit 34f90ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## 2.4.3
* Hotfix release: fixes autocompletion

## 2.4.2
*Broken release*
* Dummy module did always precede real ones leading to bad completion behavior

## 2.4.1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/vknabel"
},
"license": "Apache-2.0",
"version": "2.4.2",
"version": "2.4.3",
"publisher": "vknabel",
"icon": "icons/icon.png",
"galleryBanner": {
Expand Down
2 changes: 1 addition & 1 deletion src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function gatherAllSwiftFilesInPath(root: string): string[] {
export function getAllSourcePaths(srcPath: string): string[] {
const sp = path.dirname(srcPath)
for (let [moduleName, modulePath] of allModulePaths) {
if (moduleName != null && path.normalize(modulePath) === path.normalize(sp)) {
if (moduleName != null && path.normalize(sp).includes(path.normalize(modulePath))) {
let ss = allModuleSources.get(moduleName)
// trace("**getAllDocumentPaths** ", Array.from(ss).join(","))
return Array.from(ss)
Expand Down

0 comments on commit 34f90ba

Please sign in to comment.