Skip to content

Commit 7ebf7b0

Browse files
committed
semantic tokesn
1 parent 378cbe2 commit 7ebf7b0

File tree

7 files changed

+72
-296
lines changed

7 files changed

+72
-296
lines changed

cabal.project

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ packages:
88
./ghcide/test
99
./hls-plugin-api
1010
./hls-test-utils
11-
./plugins/hls-semantic-tokens-plugin
1211

1312
index-state: 2024-01-21T00:00:00Z
1413

haskell-language-server.cabal

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,77 @@ common semanticTokens
16661666
build-depends: hls-semantic-tokens-plugin == 2.6.0.0
16671667
cpp-options: -Dhls_semanticTokens
16681668

1669+
library hls-semantic-tokens-plugin
1670+
ghc-options: -Wall
1671+
buildable: True
1672+
exposed-modules:
1673+
Ide.Plugin.SemanticTokens
1674+
Ide.Plugin.SemanticTokens.Types
1675+
Ide.Plugin.SemanticTokens.Mappings
1676+
other-modules:
1677+
Ide.Plugin.SemanticTokens.Query
1678+
Ide.Plugin.SemanticTokens.SemanticConfig
1679+
Ide.Plugin.SemanticTokens.Utils
1680+
Ide.Plugin.SemanticTokens.Internal
1681+
1682+
hs-source-dirs: plugins/hls-semantic-tokens-plugin/src
1683+
build-depends:
1684+
, aeson
1685+
, base >=4.12 && <5
1686+
, containers
1687+
, extra
1688+
, hiedb
1689+
, mtl >= 2.2
1690+
, ghcide == 2.6.0.0
1691+
, hls-plugin-api == 2.6.0.0
1692+
, lens
1693+
, lsp >=2.3
1694+
, sqlite-simple
1695+
, text
1696+
, unordered-containers
1697+
, transformers
1698+
, bytestring
1699+
, syb
1700+
, array
1701+
, deepseq
1702+
, hls-graph == 2.6.0.0
1703+
, template-haskell
1704+
, data-default
1705+
1706+
default-language: Haskell2010
1707+
default-extensions: DataKinds
1708+
1709+
test-suite hls-semantic-tokens-plugin-tests
1710+
type: exitcode-stdio-1.0
1711+
ghc-options: -Wall
1712+
default-language: Haskell2010
1713+
hs-source-dirs: plugins/hls-semantic-tokens-plugin/test
1714+
main-is: Main.hs
1715+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
1716+
1717+
build-depends:
1718+
, aeson
1719+
, base
1720+
, containers
1721+
, extra
1722+
, filepath
1723+
, hls-semantic-tokens-plugin
1724+
, hls-test-utils == 2.6.0.0
1725+
, ghcide-test-utils
1726+
, hls-plugin-api
1727+
, lens
1728+
, lsp
1729+
, ghc
1730+
, text-rope
1731+
, lsp-test
1732+
, text
1733+
, data-default
1734+
, bytestring
1735+
, ghcide == 2.6.0.0
1736+
, hls-plugin-api == 2.6.0.0
1737+
, template-haskell
1738+
, data-default
1739+
16691740
-----------------------------
16701741
-- HLS
16711742
-----------------------------

plugins/hls-semantic-tokens-plugin/LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

plugins/hls-semantic-tokens-plugin/hls-semantic-tokens-plugin.cabal

Lines changed: 0 additions & 91 deletions
This file was deleted.

plugins/hls-semantic-tokens-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import qualified Test.Hls.FileSystem as FS
4848
import Test.Hls.FileSystem (file, text)
4949

5050
testDataDir :: FilePath
51-
testDataDir = "test" </> "testdata"
51+
testDataDir = "plugins" </> "hls-semantic-tokens-plugin" </> "test" </> "testdata"
5252

5353
mkFs :: [FS.FileTree] -> FS.VirtualFileTree
5454
mkFs = FS.mkVirtualFileTree testDataDir

stack-lts21.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ packages:
99
- ./hls-plugin-api
1010
- ./hls-test-utils
1111
# - ./shake-bench
12-
- ./plugins/hls-semantic-tokens-plugin
1312

1413
ghc-options:
1514
"$everything": -haddock

0 commit comments

Comments
 (0)