diff --git a/.gitignore b/.gitignore index e021d1059b9..fb5f66a2704 100644 --- a/.gitignore +++ b/.gitignore @@ -175,9 +175,6 @@ CMakeLists.txt .vs/ /x64/ -# VSCode JavaScript config files -**/jsconfig.json - # Windows MSI builder artifacts *.msi *.wixobj diff --git a/.vscode_defaults/linux-virtual-workstation.code-workspace b/.vscode_defaults/linux-virtual-workstation.code-workspace index d2247c0a9de..50f6fd3a8c9 100644 --- a/.vscode_defaults/linux-virtual-workstation.code-workspace +++ b/.vscode_defaults/linux-virtual-workstation.code-workspace @@ -19,7 +19,13 @@ "eslint.validate": [ "javascript" ], + "files.associations": { + "SConstruct": "python", + "SConscript": "python", + "*.idl": "yaml", + }, "files.insertFinalNewline": true, + "js/ts.implicitProjectConfig.target": "ES2020", "python.autoComplete.extraPaths": [ "/opt/mongodbtoolchain/v4/share/gcc-11.3.0/python", "src/third_party/scons-3.1.2/scons-local-3.1.2" @@ -46,11 +52,6 @@ "editor.defaultFormatter": "xaver.clang-format", "editor.formatOnSave": true, }, - "files.associations": { - "SConstruct": "python", - "SConscript": "python", - "*.idl": "yaml", - }, }, "extensions": { "recommendations": [ diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 00000000000..22f8c745b3c --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "disableSizeLimit": true, + "target": "ES2020" + }, + "exclude": [ + "node_modules", + "src/third_party" + ] +}