Skip to content

Commit 096ff06

Browse files
committed
chore: adjust for origin upstream
1 parent b38df67 commit 096ff06

File tree

14 files changed

+100
-207
lines changed

14 files changed

+100
-207
lines changed

.github/ISSUE_TEMPLATE/tracking-issue.md

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

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
workflow_dispatch:
99

.github/workflows/deploy.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
if: github.repository == 'fwcd/kotlin-language-server'
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Setup JDK
14+
uses: actions/setup-java@v3
15+
with:
16+
distribution: 'temurin'
17+
java-version: '11'
18+
- name: Setup Gradle
19+
uses: gradle/gradle-build-action@v2
20+
- name: Get tag name
21+
id: tag
22+
run: |
23+
tag=$(basename "${{ github.ref }}")
24+
echo "tag=$tag" >> $GITHUB_OUTPUT
25+
- name: Build distribution
26+
run: ./gradlew :server:distZip
27+
- name: Create release
28+
env:
29+
GH_TOKEN: ${{ github.token }}
30+
GH_REPO: ${{ github.repository }}
31+
run: |
32+
tag="${{ steps.tag.outputs.tag }}"
33+
gh release create "$tag" --title "Version $tag"
34+
- name: Upload assets
35+
env:
36+
GH_TOKEN: ${{ github.token }}
37+
GH_REPO: ${{ github.repository }}
38+
run: |
39+
tag="${{ steps.tag.outputs.tag }}"
40+
gh release upload "$tag" server/build/distributions/*
41+
- name: Deploy Maven artifacts to GitHub Packages
42+
run: ./gradlew :shared:publish :server:publish
43+
env:
44+
GPR_USERNAME: ${{ github.actor }}
45+
GPR_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docker.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Docker
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags:
7+
- '*'
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
if: github.repository == 'fwcd/kotlin-language-server'
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v3
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
- name: Log in to GHCR
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
- id: meta
28+
uses: docker/metadata-action@v5
29+
with:
30+
images: ghcr.io/fwcd/kotlin-language-server
31+
- name: Build and push image
32+
uses: docker/build-push-action@v5
33+
with:
34+
context: .
35+
platforms: linux/amd64,linux/arm64/v8
36+
push: ${{ github.event_name != 'pull_request' }}
37+
tags: ${{ steps.meta.outputs.tags }}
38+
labels: ${{ steps.meta.outputs.labels }}

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ build
1616
target
1717
out
1818

19-
# Kotlin
2019
.kotlin
2120

2221
# Python
@@ -32,4 +31,3 @@ node_modules
3231
!.vscode/tasks.json
3332
*.vsix
3433
kls_database.db
35-
.kotlin

CONTRIBUTION.md

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

README.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,18 @@
55
[![Downloads](https://img.shields.io/github/downloads/fwcd/kotlin-language-server/total)](https://github.com/fwcd/kotlin-language-server/releases)
66
[![Chat](https://img.shields.io/badge/chat-on%20discord-7289da)](https://discord.gg/cNtppzN)
77

8-
## Notice and status
9-
10-
This is fork of currently almost unmaintained upstream repo: https://github.com/fwcd/kotling-language-server
11-
12-
*This fork* is being maintained in developers' spare time. Our goal is to make this extension usable and feature complete. We *do not* aim for full feature parity with JetBrains ide's Kotlin support.
13-
14-
> We do support only Linux and MacOS. Windows is not tested but still may work. Windows only issues has least priority.
15-
16-
## Kotlin Language Server
17-
188
A [language server](https://microsoft.github.io/language-server-protocol/) that provides smart code completion, diagnostics, hover, document symbols, definition lookup, method signature help and more for [Kotlin](https://kotlinlang.org).
199

2010
![Icon](Icon128.png)
2111

2212
Any editor conforming to LSP is supported, including [VSCode](https://github.com/fwcd/vscode-kotlin) and [Atom](https://github.com/fwcd/atom-ide-kotlin).
2313

24-
### Scope of the project
25-
26-
This project is strictly limited by Language Server Protocol capabilities. We aim to provide complete language server experience.
27-
28-
Some features, that our users may expect, lies outside of our responsibility. We won't deliver any features related to code and test running, project building. These tasks should be performed by other means. We offload these features to editor specific extensions.
29-
3014
## Getting Started
3115

32-
* See [CONTRIBUTION.md](CONTRIBUTION.md) for development guidelines
33-
* See [Taiga board](https://tree.taiga.io/project/owl-from-hogvarts-kotlin-language-server/timeline) for ongoing and planed work. Core team uses it as main tool for cooperation and project's status tracking
3416
* See [BUILDING.md](BUILDING.md) for build instructions
3517
* See [Editor Integration](EDITORS.md) for editor-specific instructions
3618
* See [Troubleshooting](TROUBLESHOOTING.md) for tips on troubleshooting errors
19+
* See [Roadmap](https://github.com/fwcd/kotlin-language-server/projects/1) for features, planned additions, bugfixes and changes
3720
* See [Kotlin Quick Start](https://github.com/fwcd/kotlin-quick-start) for a sample project
3821
* See [Kotlin Debug Adapter](https://github.com/fwcd/kotlin-debug-adapter) for editor-agnostic launch and debug support of Kotlin/JVM programs
3922
* See [tree-sitter-kotlin](https://github.com/fwcd/tree-sitter-kotlin) for an experimental [Tree-Sitter](https://tree-sitter.github.io/tree-sitter/) grammar
@@ -44,8 +27,6 @@ Some features, that our users may expect, lies outside of our responsibility. We
4427

4528
## This repository needs your help!
4629

47-
> See [CONTRIBUTION.md](./CONTRIBUTION.md)
48-
4930
[The original author](https://github.com/georgewfraser) created this project while he was considering using Kotlin in his work. He ended up deciding not to and is not really using Kotlin these days though this is a pretty fully-functional language server that just needs someone to use it every day for a while and iron out the last few pesky bugs.
5031

5132
There are two hard parts of implementing a language server:
@@ -133,12 +114,5 @@ The Kotlin language server supports some custom initialization options via the `
133114

134115

135116
## Authors
136-
137-
### Current maintainers team
138-
* [owl-from-hogvarts](https://github.com/owl-from-hogvarts)
139-
* [localPiper](https://github.com/localPiper)
140-
* [Zerumi](https://github.com/zerumi)
141-
142-
### Original authors
143117
* [georgewfraser](https://github.com/georgewfraser)
144118
* [fwcd](https://github.com/fwcd)

TODO.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# TODO
2+
3+
## Bugs
4+
5+
## Features
6+
- Fix-imports-on-save, default to 'on'
7+
- See https://godoc.org/golang.org/x/tools/cmd/goimports
8+
- Rename
9+
- .kts support with eval
10+
11+
## Requirements
12+
13+
## Known Issues

detekt_baseline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<SmellBaseline>
33
<ManuallySuppressedIssues></ManuallySuppressedIssues>
44
<CurrentIssues>
5-
<ID>ComplexCondition:SemanticTokens.kt$element is KtVariableDeclaration &amp;&amp; (!element.isVar || element.hasModifier(KtTokens.CONST_KEYWORD)) || element is KtParameter</ID>
5+
<ID>ComplexCondition:SemanticTokens.kt$element is KtVariableDeclaration &amp;&amp; (!element.isVar() || element.hasModifier(KtTokens.CONST_KEYWORD)) || element is KtParameter</ID>
66
<ID>CyclomaticComplexMethod:Completions.kt$private fun elementCompletions(file: CompiledFile, cursor: Int, surroundingElement: KtElement): Sequence&lt;DeclarationDescriptor&gt;</ID>
77
<ID>CyclomaticComplexMethod:Completions.kt$private fun indexCompletionItems(file: CompiledFile, cursor: Int, element: KtElement?, index: SymbolIndex, partial: String): Sequence&lt;CompletionItem&gt;</ID>
88
<ID>CyclomaticComplexMethod:GoToDefinition.kt$fun goToDefinition( file: CompiledFile, cursor: Int, classContentProvider: ClassContentProvider, tempDir: TemporaryDirectory, config: ExternalSourcesConfiguration, cp: CompilerClassPath ): Location?</ID>

images/workspace-settings.png

-15.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)