diff --git a/package.json b/package.json index 1d824d7..5856e9e 100644 --- a/package.json +++ b/package.json @@ -146,6 +146,14 @@ "Pkl 0.25 - 0.29", "Pkl 0.30+" ] + }, + "pkl.projects.excludedDirectories": { + "type": "array", + "items": { + "type": "string" + }, + "default": [], + "description": "List of directories to exclude when discovering Pkl projects. Supports glob patterns (* and **)." } } }, diff --git a/src/ts/consts.ts b/src/ts/consts.ts index 9359f7a..70ef0a1 100644 --- a/src/ts/consts.ts +++ b/src/ts/consts.ts @@ -1,5 +1,5 @@ /* - * Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved. + * Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * 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"; // only used by the LSP server export const CONFIG_CLI_PATH = "pkl.cli.path"; +// only used by the LSP server +export const CONFIG_PROJECTS_EXCLUDED_DIRECTORIES = "pkl.projects.excludedDirectories"; + export const COMMAND_DOWNLOAD_PACKAGE = "pkl.downloadPackage"; export const COMMAND_PKL_OPEN_FILE = "pkl.open.file";