summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/CodeDocument.h
diff options
context:
space:
mode:
authorry-sev <rickyseverino@protonmail.com>2021-07-01 20:39:17 -0400
committerGunnar Beutner <gunnar@beutner.name>2021-07-16 12:58:20 +0200
commit2634cab7a825375ff8b1a5d20245b71f9e41b266 (patch)
tree221ec1e7254f7289c4f89d909875cf9943760b67 /Userland/DevTools/HackStudio/CodeDocument.h
parente22a34badbf7f0826c74af982030bff7fc825dc8 (diff)
downloadserenity-2634cab7a825375ff8b1a5d20245b71f9e41b266.zip
HackStudio: Add statusbar with file and selected text information
Diffstat (limited to 'Userland/DevTools/HackStudio/CodeDocument.h')
-rw-r--r--Userland/DevTools/HackStudio/CodeDocument.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/DevTools/HackStudio/CodeDocument.h b/Userland/DevTools/HackStudio/CodeDocument.h
index 2503c8d1d5..37167cd8e9 100644
--- a/Userland/DevTools/HackStudio/CodeDocument.h
+++ b/Userland/DevTools/HackStudio/CodeDocument.h
@@ -24,6 +24,7 @@ public:
void set_execution_position(size_t line) { m_execution_position = line; }
void clear_execution_position() { m_execution_position.clear(); }
const String& file_path() const { return m_file_path; }
+ const String& language_name() const { return m_language_name; };
Language language() const { return m_language; }
virtual bool is_code_document() const override final { return true; }
@@ -33,6 +34,7 @@ private:
explicit CodeDocument(Client* client = nullptr);
String m_file_path;
+ String m_language_name;
Language m_language { Language::Unknown };
Vector<size_t> m_breakpoint_lines;
Optional<size_t> m_execution_position;