Skip to content

Commit

Permalink
Read launch config from devcontainers (#388)
Browse files Browse the repository at this point in the history
* Use workspace when getting the launch.json

* fix local vsix creation
  • Loading branch information
paulacamargo25 authored Jul 18, 2024
1 parent 161cd6b commit 481ccdb
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 82 deletions.
144 changes: 63 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function getConfigurationsForWorkspace(workspace: WorkspaceFolder):
const filename = path.join(workspace.uri.fsPath, '.vscode', 'launch.json');
if (!(await fs.pathExists(filename))) {
// Check launch config in the workspace file
const codeWorkspaceConfig = getConfiguration('launch');
const codeWorkspaceConfig = getConfiguration('launch', workspace);
if (!codeWorkspaceConfig.configurations || !Array.isArray(codeWorkspaceConfig.configurations)) {
return [];
}
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const extensionConfig = {
'@opentelemetry/instrumentation': 'commonjs @opentelemetry/instrumentation', // ignored because we don't ship instrumentation
'@azure/opentelemetry-instrumentation-azure-sdk': 'commonjs @azure/opentelemetry-instrumentation-azure-sdk', // ignored because we don't ship instrumentation
'@azure/functions-core': '@azure/functions-core', // ignored because we don't ship instrumentation
'@microsoft/dynamicproto-js': '@microsoft/dynamicproto-js', // ignored because we don't ship instrumentation
},
resolve: {
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
Expand Down

0 comments on commit 481ccdb

Please sign in to comment.