mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 15:05:28 +02:00
fix(server): Improve function names
This commit is contained in:
parent
3131023ef2
commit
fe8a42d37b
@ -1,7 +1,8 @@
|
||||
import { GenericNotificationHandler } from "vscode-languageclient";
|
||||
import { tempUndetectableFiles } from "./shared";
|
||||
|
||||
export const onDetectable: GenericNotificationHandler = async (params: LSPLanguageDetected) => {
|
||||
export const onLanguageDetectable: GenericNotificationHandler = async (params: LSPLanguageDetected) => {
|
||||
// Hide warning box
|
||||
tempUndetectableFiles.add(params.Uri);
|
||||
}
|
||||
|
||||
|
@ -7,8 +7,8 @@ import {
|
||||
type LanguageClientOptions,
|
||||
type ServerOptions,
|
||||
} from "vscode-languageclient/node";
|
||||
import { onUndetectable } from "./events/on-undetectable";
|
||||
import { onDetectable as onDetected } from "./events/on-detectable";
|
||||
import { onLanguageUndetectable } from "./events/on-language-undetectable";
|
||||
import { onLanguageDetectable } from "./events/on-language-detected";
|
||||
|
||||
const IS_DEBUG =
|
||||
process.env.VSCODE_DEBUG_MODE === "true" ||
|
||||
@ -52,8 +52,8 @@ export async function activate({subscriptions}: ExtensionContext) {
|
||||
await client.start();
|
||||
console.info("Started config-lsp");
|
||||
|
||||
subscriptions.push(client.onNotification("$/config-lsp/languageUndetectable", onUndetectable))
|
||||
subscriptions.push(client.onNotification("$/config-lsp/detectedLanguage", onDetected))
|
||||
subscriptions.push(client.onNotification("$/config-lsp/languageUndetectable", onLanguageUndetectable))
|
||||
subscriptions.push(client.onNotification("$/config-lsp/detectedLanguage", onLanguageDetectable))
|
||||
}
|
||||
|
||||
function getBundledPath(): string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user