Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT Feature/ls core v7 #1412

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ plugins {
id("me.qoomon.git-versioning") version "3.0.0"
id("com.github.ben-manes.versions") version "0.31.0"
id("io.freefair.javadoc-links") version "5.2.1"
id("org.springframework.boot") version "2.3.3.RELEASE"
id("org.springframework.boot") version "2.3.4.RELEASE"
id("com.github.1c-syntax.bslls-dev-tools") version "0.3.1"
}

apply(plugin = "io.spring.dependency-management")

repositories {
mavenLocal()
mavenCentral()
maven(url = "https://jitpack.io")
}
Expand Down Expand Up @@ -68,6 +69,8 @@ dependencies {
}
api("com.github.1c-syntax", "utils", "0.3.1")
api("com.github.1c-syntax", "mdclasses", "0.6.1")
// ls-core
api("com.github.1c-syntax", "ls-core-lib", "feature-first_step-c57a90d-DIRTY")

// JLanguageTool
implementation("org.languagetool", "languagetool-core", "5.0.2")
Expand Down Expand Up @@ -127,14 +130,15 @@ tasks.withType<JavaCompile> {

tasks.jar {
manifest {
attributes["Main-Class"] = "com.github._1c_syntax.bsl.languageserver.BSLLSPLauncher"
attributes["Main-Class"] = "com.github._1c_syntax.ls_core.LSLauncher"
attributes["Implementation-Version"] = archiveVersion.get()
}
enabled = true
}

tasks.bootJar {
manifest {
attributes["Start-Class"] = "com.github._1c_syntax.ls_core.LSLauncher"
attributes["Implementation-Version"] = archiveVersion.get()
}
archiveClassifier.set("exec")
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/DiagnosticStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ _**<В разработке>**_
package com.github._1c_syntax.bsl.languageserver.diagnostics;

import org.eclipse.lsp4j.Diagnostic;
import com.github._1c_syntax.bsl.languageserver.utils.Ranges;
import com.github._1c_syntax.bsl.languageserver.utils.BSLRanges;
import org.junit.jupiter.api.Test;

import java.util.List;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
*/
package com.github._1c_syntax.bsl.languageserver;

import com.github._1c_syntax.bsl.languageserver.configuration.LanguageServerConfiguration;
import com.github._1c_syntax.bsl.languageserver.context.ServerContext;
import com.github._1c_syntax.bsl.languageserver.diagnostics.metadata.DiagnosticInfo;
import com.github._1c_syntax.bsl.languageserver.configuration.BSLLanguageServerConfiguration;
import com.github._1c_syntax.bsl.languageserver.context.BSLServerContext;
import com.github._1c_syntax.bsl.languageserver.diagnostics.metadata.BSLDiagnosticInfo;
import lombok.AccessLevel;
import lombok.Getter;
import org.springframework.boot.Banner;
Expand Down Expand Up @@ -61,16 +61,16 @@ public static ConfigurableApplicationContext getApplicationContext() {
}

@SuppressWarnings("unchecked")
public static Collection<DiagnosticInfo> getDiagnosticInfos() {
public static Collection<BSLDiagnosticInfo> getDiagnosticInfos() {
return getApplicationContext().getBean("diagnosticInfos", Collection.class);
}

public static LanguageServerConfiguration getLanguageServerConfiguration() {
return getApplicationContext().getBean(LanguageServerConfiguration.class);
public static BSLLanguageServerConfiguration getLanguageServerConfiguration() {
return getApplicationContext().getBean(BSLLanguageServerConfiguration.class);
}

public static ServerContext getServerContext() {
return getApplicationContext().getBean(ServerContext.class);
public static BSLServerContext getServerContext() {
return getApplicationContext().getBean(BSLServerContext.class);
}

private static SpringApplication createApplication() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.github._1c_syntax.bsl.languageserver;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
* Данный класс необходим spring boot'у для инжекта реализации ls-core
*/
@SpringBootApplication
@ComponentScan("com.github._1c_syntax.ls_core")
public class BSLLSConfiguration {
}

This file was deleted.

Loading