GUI: Applicationlist: Add Microsoft Visual Studio Code (on Windows) (#1193)
This commit is contained in:
parent
55983e2a0b
commit
b1bd6bb9ff
|
@ -252,5 +252,15 @@ bool ApplicationList::findDefaultWindowsEditor()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const QString regPathMSVSCode = "HKEY_CLASSES_ROOT\\Applications\\Code.exe\\shell\\open\\command";
|
||||||
|
const QSettings registryMSVSCode(regPathMSVSCode, QSettings::NativeFormat);
|
||||||
|
const QString msvscodeRegistry = registryMSVSCode.value("Default", QString()).toString();
|
||||||
|
if (!msvscodeRegistry.isEmpty()) {
|
||||||
|
const QString msvscodePath = msvscodeRegistry.left(msvscodeRegistry.indexOf(".exe") + 4).replace("\"", "");
|
||||||
|
if (checkAndAddApplication(msvscodePath, "Microsoft VS Code", "-g (file):(line)")) {
|
||||||
|
foundOne = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return foundOne;
|
return foundOne;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue