Fix missing __dirname in --locate-shell-integration-path#231423
Fix missing __dirname in --locate-shell-integration-path#231423Tyriar merged 1 commit intomicrosoft:mainfrom
Conversation
|
But I would not call out "ESM" specifically, this is just the way of doing it now 🤔 |
|
Follow up #231427 This is really a good catch and was missed during the ESM migration. We are bitten by the fact that the node.js types declare a global Update: I think we can have a ESLint rule to disallow... |
|
Thanks everyone for the quick turn around on this. |
|
May not be worth changing anything, but I think the import here: vscode/src/vs/server/node/server.cli.ts Line 10 in ffa1857 is not necessary, since dirname has already been imported here:vscode/src/vs/server/node/server.cli.ts Line 12 in ffa1857 I think the import line could be removed and |
|
Yes thanks, will address that. |
…r-cli Fix missing __dirname in --locate-shell-integration-path
This patch fixes #230584 by applying the recommended fix from:
https://masteringjs.io/tutorials/node/__dirname-is-not-defined