@likec4/language-server 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LikeC4FileSystem.js +2 -2
- package/dist/bundled.mjs +2457 -2454
- package/dist/config/schema.d.ts +1 -0
- package/dist/config/schema.js +7 -0
- package/dist/generated/ast.d.ts +1 -1
- package/dist/generated/grammar.d.ts +1 -1
- package/dist/generated/module.d.ts +1 -1
- package/dist/logger.js +4 -0
- package/dist/mcp/tools/list-projects.js +3 -0
- package/dist/mcp/tools/read-project-summary.js +3 -0
- package/dist/model/builder/buildModel.d.ts +7 -1
- package/dist/model/builder/buildModel.js +8 -2
- package/dist/model/model-builder.js +2 -1
- package/dist/model/model-parser.d.ts +9 -9
- package/dist/model/parser/DeploymentModelParser.d.ts +1 -1
- package/dist/model/parser/DeploymentViewParser.d.ts +1 -1
- package/dist/model/parser/FqnRefParser.d.ts +1 -1
- package/dist/model/parser/GlobalsParser.d.ts +1 -1
- package/dist/model/parser/ImportsParser.d.ts +1 -1
- package/dist/model/parser/ModelParser.d.ts +1 -1
- package/dist/model/parser/PredicatesParser.d.ts +1 -1
- package/dist/model/parser/SpecificationParser.d.ts +1 -1
- package/dist/model/parser/ViewsParser.d.ts +1 -1
- package/dist/model/parser/ViewsParser.js +7 -2
- package/dist/protocol.d.ts +1 -1
- package/dist/protocol.js +1 -1
- package/dist/views/likec4-views.d.ts +29 -8
- package/dist/views/likec4-views.js +5 -6
- package/dist/workspace/IndexManager.d.ts +1 -1
- package/dist/workspace/IndexManager.js +1 -2
- package/package.json +10 -9
package/dist/LikeC4FileSystem.js
CHANGED
|
@@ -12,7 +12,7 @@ const SearchExtension = [
|
|
|
12
12
|
...LikeC4LanguageMetaData.fileExtensions,
|
|
13
13
|
...ProjectsManager.ConfigFileNames
|
|
14
14
|
];
|
|
15
|
-
const
|
|
15
|
+
const hasExtension = (path) => SearchExtension.some((ext) => path.endsWith(ext));
|
|
16
16
|
class SymLinkTraversingFileSystemProvider extends NodeFileSystemProvider {
|
|
17
17
|
async readFile(uri) {
|
|
18
18
|
if (isLikeC4Builtin(uri)) {
|
|
@@ -23,7 +23,7 @@ class SymLinkTraversingFileSystemProvider extends NodeFileSystemProvider {
|
|
|
23
23
|
async readDirectory(folderPath) {
|
|
24
24
|
const entries = [];
|
|
25
25
|
try {
|
|
26
|
-
const crawled = await new fdir().withSymlinks({ resolvePaths: false }).withFullPaths().filter(
|
|
26
|
+
const crawled = await new fdir().withSymlinks({ resolvePaths: false }).withFullPaths().filter(hasExtension).crawl(folderPath.fsPath).withPromise();
|
|
27
27
|
for (const path of crawled) {
|
|
28
28
|
entries.push({
|
|
29
29
|
isFile: true,
|