Skip to content

Commit

Permalink
Windows: open project with VS Code (if associated with Lua files)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shchvova committed Jun 8, 2020
1 parent 465e8f3 commit 5a41dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/windows/Corona.Simulator/SimulatorView.cpp
Expand Up @@ -1022,7 +1022,7 @@ void CSimulatorView::OnFileOpenInEditor()
// If Windows doesn't have a valid file association, then open it with Notepad.
if (hasValidFileAssociation)
{
if (fileAssociation == _T("sublime_text.exe")) {
if (fileAssociation == _T("sublime_text.exe") || fileAssociation == _T("Code.exe")) {
CString fullPath(GetDocument()->GetPath());
index = fullPath.ReverseFind(_T('\\'));
if (index > 0)
Expand Down

0 comments on commit 5a41dc9

Please sign in to comment.