From d13902e489e505718e390a686925578ecbcc72b6 Mon Sep 17 00:00:00 2001 From: Ashwin Shenoy Date: Sat, 19 Dec 2020 15:38:21 +0530 Subject: [PATCH 1/4] Add the new `kill_previous` exec arg to the completions. This commit adds the `kill_previous` arg to the completions file(s). It was introduced in Build 4092 and meant to kill any previously running builds before starting a new one. --- .../Completions/Exec Keys (in-string).sublime-completions | 5 +++++ .../Completions/Exec Keys.sublime-completions | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions b/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions index 0be10b62..eab2d188 100644 --- a/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions +++ b/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions @@ -46,6 +46,11 @@ "details": "Kill the running process", "kind": ["keyword", "k", "exec"], }, + { + "trigger": "kill_previous", + "details": "Kill the previously runnning build", + "kind": ["keyword", "k", "exec"], + }, { "trigger": "update_phantoms_only", "details": "Just update phantoms", diff --git a/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions b/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions index dc33c26e..838a302a 100644 --- a/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions +++ b/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions @@ -55,6 +55,12 @@ "details": "Kill the running process", "kind": ["keyword", "k", "exec"], }, + { + "trigger": "kill_previous", + "contents": "\"kill_previous\": true,$0", + "details": "Kill the previously runnning build", + "kind": ["keyword", "k", "exec"], + }, { "trigger": "update_phantoms_only", "contents": "\"update_phantoms_only\": true,$0", From ccb3bc624f848c649a4b3d611f85ac1534405289 Mon Sep 17 00:00:00 2001 From: Ashwin Shenoy Date: Sat, 19 Dec 2020 15:41:53 +0530 Subject: [PATCH 2/4] Remove the completions for phantom related exec args. This commit removes completions for phantom related exec args since annotations have now replaced them, so they no longer have any meaning in the new 4xxx builds starting from Build 4050. --- .../Completions/Exec Keys (in-string).sublime-completions | 5 ----- .../Completions/Exec Keys.sublime-completions | 6 ------ 2 files changed, 11 deletions(-) diff --git a/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions b/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions index eab2d188..5c1dd13b 100644 --- a/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions +++ b/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions @@ -51,11 +51,6 @@ "details": "Kill the previously runnning build", "kind": ["keyword", "k", "exec"], }, - { - "trigger": "update_phantoms_only", - "details": "Just update phantoms", - "kind": ["keyword", "k", "exec"], - }, { "trigger": "word_wrap", "details": "Enable word wrapping for output panel", diff --git a/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions b/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions index 838a302a..1f4de054 100644 --- a/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions +++ b/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions @@ -61,12 +61,6 @@ "details": "Kill the previously runnning build", "kind": ["keyword", "k", "exec"], }, - { - "trigger": "update_phantoms_only", - "contents": "\"update_phantoms_only\": true,$0", - "details": "Just update phantoms", - "kind": ["keyword", "k", "exec"], - }, { "trigger": "word_wrap", "contents": "\"word_wrap\": \"$1\",$0", From 1b620adaa4d182dd52f0f46bbf8b255c429a02c9 Mon Sep 17 00:00:00 2001 From: Ashwin Shenoy Date: Sat, 19 Dec 2020 15:47:07 +0530 Subject: [PATCH 3/4] Update the build system syntax file. This commit 1. Removes the phantoms related exec args for reasons already stated in the previous commit. 2. Adds the `kill_previous` arg for highlighting purposes. --- .../Sublime Text Build System.sublime-syntax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package/Sublime Text Build System/Sublime Text Build System.sublime-syntax b/Package/Sublime Text Build System/Sublime Text Build System.sublime-syntax index c8a084fe..3033933f 100644 --- a/Package/Sublime Text Build System/Sublime Text Build System.sublime-syntax +++ b/Package/Sublime Text Build System/Sublime Text Build System.sublime-syntax @@ -133,7 +133,7 @@ contexts: 2: support.function.exec-arg.sublime-build 3: punctuation.definition.string.end.json set: [expect-regex-string-value, expect-colon] - - match: (")(shell|quiet|kill|update_phantoms_only|hide_phantoms_only|word_wrap)(") + - match: (")(shell|quiet|kill(?:_previous)?|update_annotations_only|word_wrap)(") scope: meta.mapping.key.json meta.main-key.sublime-build string.quoted.double.json captures: 1: punctuation.definition.string.begin.json From b652f5020e8449ac162686f0ced06297404c5e7e Mon Sep 17 00:00:00 2001 From: Ashwin Shenoy Date: Sat, 19 Dec 2020 15:51:53 +0530 Subject: [PATCH 4/4] Add the new `update_annotations_only` exec arg to the completions. This commit adds the `update_annotations_only` arg to the completions file(s). It was introduced in Build 4050. There seems to have been a corresponding `hide_annotations_only` arg as well but that looks to have been removed in Build 4067 for some reason. --- .../Completions/Exec Keys (in-string).sublime-completions | 5 +++++ .../Completions/Exec Keys.sublime-completions | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions b/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions index 5c1dd13b..96c67c9a 100644 --- a/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions +++ b/Package/Sublime Text Build System/Completions/Exec Keys (in-string).sublime-completions @@ -51,6 +51,11 @@ "details": "Kill the previously runnning build", "kind": ["keyword", "k", "exec"], }, + { + "trigger": "update_annotations_only", + "details": "Update annotations only", + "kind": ["keyword", "k", "exec"], + }, { "trigger": "word_wrap", "details": "Enable word wrapping for output panel", diff --git a/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions b/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions index 1f4de054..6c2a4baa 100644 --- a/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions +++ b/Package/Sublime Text Build System/Completions/Exec Keys.sublime-completions @@ -61,6 +61,12 @@ "details": "Kill the previously runnning build", "kind": ["keyword", "k", "exec"], }, + { + "trigger": "update_annotations_only", + "contents": "\"update_annotations_only\": true,$0", + "details": "Update annotations only", + "kind": ["keyword", "k", "exec"], + }, { "trigger": "word_wrap", "contents": "\"word_wrap\": \"$1\",$0",