Skip to content

Commit ef1b63c

Browse files
committed
Allow the extension NBLS to launch on Windows arm64 with x64 JDK
The NBLS launch on Windows arm64 is fixed to use the x64 version of nbcode exe launcher. - This will allow the use of the extension on this platform with jdk.jdkhome set to an x64 JDK. - If the user programs need to be run on an arm64 JDK, the jdk.project.jdkhome can be set to the arm64 JDK. - Note: Currently there is no arm64 windows build of the nbcode launcher.
1 parent ab0bfa8 commit ef1b63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode/src/lsp/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const enableDisableModules = (
4444

4545
export const findNbcode = (extensionPath: string): string => {
4646
let nbcode = os.platform() === 'win32' ?
47-
os.arch() === 'x64' ? 'nbcode64.exe' : 'nbcode.exe'
47+
os.arch() === 'x64' || os.arch() === 'arm64' ? 'nbcode64.exe' : 'nbcode.exe'
4848
: 'nbcode.sh';
4949
let nbcodePath = path.join(extensionPath, "nbcode", "bin", nbcode);
5050

0 commit comments

Comments
 (0)