Skip to content

Commit e14e1c3

Browse files
committed
[ new ] Release Language Server v4 that supports Agda-2.7.0.1, Agda-2.6.4.3, and Agda-2.6.3
1 parent b0b972a commit e14e1c3

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ jobs:
130130
# things to be cached
131131

132132
- name: 💾 Cache stack global package db
133-
if: steps.stack-global.outputs.cache-hit != 'true'
133+
if: always() && steps.stack-global.outputs.cache-hit != 'true'
134134
uses: actions/cache/save@v4
135135
with:
136136
path: ${{ env.STACK_ROOT }}
137137
key: ${{ steps.stack-global.outputs.cache-primary-key }}
138138

139139
- name: 💾 Cache .stack-work
140-
if: steps.stack-work.outputs.cache-hit != 'true'
140+
if: always() && steps.stack-work.outputs.cache-hit != 'true'
141141
uses: actions/cache/save@v4
142142
with:
143143
path: .stack-work

agda-language-server.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 1.12
55
-- see: https://github.com/sol/hpack
66

77
name: agda-language-server
8-
version: 0.2.7.0.1.3
8+
version: 0.2.7.0.1.4
99
synopsis: An implementation of language server protocal (LSP) for Agda 2.
1010
description: Please see the README on GitHub at <https://github.com/agda/agda-language-server#readme>
1111
category: Development

src/Options.hs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DeriveGeneric #-}
23

34
module Options
@@ -64,26 +65,19 @@ options =
6465
]
6566

6667
usage :: String
68+
usage =
6769
#if MIN_VERSION_Agda(2,7,0)
68-
usage = "Agda v2.7.0.1 Language Server v4\nUsage: als [Options...]\n"
69-
#endif
70-
#if MIN_VERSION_Agda(2,6,4)
71-
usage = "Agda v2.6.4.3 Language Server v4\nUsage: als [Options...]\n"
72-
#endif
73-
#if MIN_VERSION_Agda(2,6,3)
74-
usage = "Agda v2.6.3 Language Server v4\nUsage: als [Options...]\n"
70+
"Agda v2.7.0.1 Language Server v4\nUsage: als [Options...]\n"
71+
#elif MIN_VERSION_Agda(2,6,4)
72+
"Agda v2.6.4.3 Language Server v4\nUsage: als [Options...]\n"
73+
#elif MIN_VERSION_Agda(2,6,3)
74+
"Agda v2.6.3 Language Server v4\nUsage: als [Options...]\n"
75+
#else
76+
"Unsupported Agda version\n"
7577
#endif
7678

7779
usageAboutAgdaOptions :: String
78-
usageAboutAgdaOptions =
79-
"\n\
80-
\ +AGDA [Options for Agda ...] -AGDA\n\
81-
\ To pass command line options to Agda, put them in between '+AGDA' and '-AGDA'\n\
82-
\ For example:\n\
83-
\ als -p=3000 +AGDA --cubical -AGDA\n\
84-
\ If you are using agda-mode on VS Code, put them in the Settings at:\n\
85-
\ agdaMode.connection.commandLineOptions\n\
86-
\"
80+
usageAboutAgdaOptions = "\n +AGDA [Options for Agda ...] -AGDA\n To pass command line options to Agda, put them in between '+AGDA' and '-AGDA'\n For example:\n als -p=3000 +AGDA --cubical -AGDA\n If you are using agda-mode on VS Code, put them in the Settings at:\n agdaMode.connection.commandLineOptions\n"
8781

8882
parseOpts :: [String] -> IO (Options, [String])
8983
parseOpts argv = case getOpt Permute options argv of

0 commit comments

Comments
 (0)