From 5cd033f2dfc039fa8bb7885965e43f842e3ac407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Granstr=C3=B6m?= Date: Thu, 19 Sep 2024 09:56:44 +0200 Subject: [PATCH] Update Document --- scide_scnvim/Classes/Document.sc | 48 +++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/scide_scnvim/Classes/Document.sc b/scide_scnvim/Classes/Document.sc index d9be2cf8..1bacb39b 100644 --- a/scide_scnvim/Classes/Document.sc +++ b/scide_scnvim/Classes/Document.sc @@ -1,21 +1,37 @@ -// nvim Document implementation -// -// The following code is copied/adapted from the Document implementation found in ScIDE.sc -// License GPLv3 +// The following code was copied from the LanguageServer.quark implementation +// and adjusted to handle thisProcess.nowExecutingPath for scnvim Document { - classvar current; + classvar initAction; + classvar <>autoRun = true; + classvar implementingClass; - // needed for thisProcess.nowExecutingPath to work.. see Kernel::interpretCmdLine - var quuid, toFrontAction, <>endFrontAction, <>onClose, <>textChangedAction; - *new {|path, dataptr| - ^super.newCopyArgs(path, dataptr); + var path, <>dataptr; + // var