Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different vallues module.expots and exports #51029

Open
vscodenpa opened this issue May 13, 2022 · 16 comments
Open

Different vallues module.expots and exports #51029

vscodenpa opened this issue May 13, 2022 · 16 comments

Comments

@vscodenpa
Copy link

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Версия: 1.67.0 (system setup)
Фиксация: 57fd6d0195bb9b9d1b49f6da5db789060795de47
Дата: 2022-05-04T12:06:02.889Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
ОС: Windows_NT x64 10.0.19044

I debug code extension JS code

const vscode = require('vscode');
// ..
function activate() {}
function deactivate() {}
// case 1
exports = {activate , deactivate}  // not works not call activate function 
// case 0 
// module.exports = {activate , deactivate}  //  ok - works 

Steps to Reproduce:

After evaluate exports assigment internal state chnge to wrong values. module.exports not same as exports
Безымянный

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@vscodenpa and others