Skip to content

Commit cced959

Browse files
Add configuration for excluding project sync dirs (apple#79)
1 parent 43afea2 commit cced959

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@
146146
"Pkl 0.25 - 0.29",
147147
"Pkl 0.30+"
148148
]
149+
},
150+
"pkl.projects.excludedDirectories": {
151+
"type": "array",
152+
"items": {
153+
"type": "string"
154+
},
155+
"default": [],
156+
"description": "List of directories to exclude when discovering Pkl projects. Supports glob patterns (* and **)."
149157
}
150158
}
151159
},

src/ts/consts.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
2+
* Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,6 +30,9 @@ export const CONFIG_LSP_DEBUG_PORT = "pkl.lsp.debug.port";
3030
// only used by the LSP server
3131
export const CONFIG_CLI_PATH = "pkl.cli.path";
3232

33+
// only used by the LSP server
34+
export const CONFIG_PROJECTS_EXCLUDED_DIRECTORIES = "pkl.projects.excludedDirectories";
35+
3336
export const COMMAND_DOWNLOAD_PACKAGE = "pkl.downloadPackage";
3437

3538
export const COMMAND_PKL_OPEN_FILE = "pkl.open.file";

0 commit comments

Comments
 (0)