Some checks failed
Build Android / Game (Android, Release ARM64) (push) Has been cancelled
Build iOS / Game (iOS, Release ARM64) (push) Has been cancelled
Build Linux / Editor (Linux, Development x64) (push) Has been cancelled
Build Linux / Game (Linux, Release x64) (push) Has been cancelled
Build macOS / Editor (Mac, Development ARM64) (push) Has been cancelled
Build macOS / Game (Mac, Release ARM64) (push) Has been cancelled
Build Windows / Editor (Windows, Development x64) (push) Has been cancelled
Build Windows / Game (Windows, Release x64) (push) Has been cancelled
Cooker / Cook (Mac) (push) Has been cancelled
Tests / Tests (Linux) (push) Has been cancelled
Tests / Tests (Windows) (push) Has been cancelled
42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
// Copyright (c) Wojciech Figat. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Editor/Scripting/CodeEditor.h"
|
|
|
|
/// <summary>
|
|
/// Implementation of code editor utility that is using Microsoft Visual Studio Code.
|
|
/// </summary>
|
|
class ZedEditor : public CodeEditor
|
|
{
|
|
private:
|
|
|
|
String _execPath;
|
|
String _workspacePath;
|
|
|
|
public:
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="VisualStudioEditor"/> class.
|
|
/// </summary>
|
|
/// <param name="execPath">Executable file path</param>
|
|
ZedEditor(const String& execPath);
|
|
|
|
public:
|
|
|
|
/// <summary>
|
|
/// Tries to find installed Visual Studio Code instance. Adds them to the result list.
|
|
/// </summary>
|
|
/// <param name="output">The output editors.</param>
|
|
static void FindEditors(Array<CodeEditor*>* output);
|
|
|
|
public:
|
|
|
|
// [CodeEditor]
|
|
CodeEditorTypes GetType() const override;
|
|
String GetName() const override;
|
|
void OpenFile(const String& path, int32 line) override;
|
|
void OpenSolution() override;
|
|
bool UseAsyncForOpen() const override;
|
|
};
|