<commit_before>// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as fs from "fs";
import * as Path from "path";
import * as vscode from "vscode";
import { BSL_MODE, LANGUAGE_1C_BSL_CONFIG } from "./const";
import { Global } from "./global";

import BslQuickOpen from "./features/bslQuickOpen";
import CompletionItemProvider from "./features/completionItemProvider";
import DefinitionProvider from "./features/definitionProvider";
import DocumentFormattingEditProvider from "./features/documentFormattingEditProvider";
import DocumentSymbolProvider from "./features/documentSymbolProvider";
import HoverProvider from "./features/hoverProvider";
import LanguageClientProvider from "./features/languageClientProvider";
import LintProvider from "./features/lintProvider";
import ReferenceProvider from "./features/referenceProvider";
import SignatureHelpProvider from "./features/signatureHelpProvider";
import SyntaxHelper from "./features/syntaxHelper";
import TaskProvider from "./features/taskProvider";
import WorkspaseSymbolProvider from "./features/workspaceSymbolProvider";

import { CodeBeautyfier } from "./features/codeBeautifier";
import * as dynamicSnippets from "./features/dynamicSnippets";
import { MethodController } from "./features/methodController";
import { MethodDetect } from "./features/methodDetect";
import * as vscAdapter from "./vscAdapter";

import LibProvider from "./libProvider";
import { IStatus, StatusBarEntry } from "./util/status";

const libProvider = new LibProvider();
const languageClientProvider = new LanguageClientProvider();

export const oscriptLinter = new LintProvider();

// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {
    const CMD_UPDATE = "language-1c-bsl.update";
    const CMD_CREATECOMMENTS = "language-1c-bsl.createComments";
    const CMD_CREATEDESCRIPTIONAPIMODULE = "language-1c-bsl.createDescriptionAPIModule";
    const CMD_CREATEMARKDOWNTEXTAPI = "language-1c-bsl.createMarkdownTextWithAPI";
    const CMD_ADDCOMMENT = "language-1c-bsl.addComment";
    const CMD_EXPANDABBREVIATION = "language-1c-bsl.expandAbbreviation";
    const CMD_QUICKOPEN = "language-1c-bsl.quickopen";
    const CMD_OPENCONT = "language-1c-bsl.openContent";

    const global = Global.create(vscAdapter);
    const quickOpen = new BslQuickOpen(global);
    const taskProvider = new TaskProvider();

    vscode.workspace.onDidChangeConfiguration(taskProvider.onConfigurationChanged);
    taskProvider.onConfigurationChanged();

    context.subscriptions.push(
        vscode.languages.registerCompletionItemProvider(
            BSL_MODE,
            new CompletionItemProvider(global),
            ".",
            "="
        )
    );
    context.subscriptions.push(
        vscode.languages.registerDefinitionProvider(BSL_MODE, new DefinitionProvider(global))
    );
    context.subscriptions.push(
        vscode.languages.registerReferenceProvider(BSL_MODE, new ReferenceProvider(global))
    );
    context.subscriptions.push(
        vscode.languages.registerWorkspaceSymbolProvider(new WorkspaseSymbolProvider(global))
    );
    context.subscriptions.push(
        vscode.languages.registerSignatureHelpProvider(
            BSL_MODE,<commit_msg>после изменения настроек задачи зависали<commit_after>// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as fs from "fs";
import * as Path from "path";
import * as vscode from "vscode";
import { BSL_MODE, LANGUAGE_1C_BSL_CONFIG } from "./const";
import { Global } from "./global";

import BslQuickOpen from "./features/bslQuickOpen";
import CompletionItemProvider from "./features/completionItemProvider";
import DefinitionProvider from "./features/definitionProvider";
import DocumentFormattingEditProvider from "./features/documentFormattingEditProvider";
import DocumentSymbolProvider from "./features/documentSymbolProvider";
import HoverProvider from "./features/hoverProvider";
import LanguageClientProvider from "./features/languageClientProvider";
import LintProvider from "./features/lintProvider";
import ReferenceProvider from "./features/referenceProvider";
import SignatureHelpProvider from "./features/signatureHelpProvider";
import SyntaxHelper from "./features/syntaxHelper";
import TaskProvider from "./features/taskProvider";
import WorkspaseSymbolProvider from "./features/workspaceSymbolProvider";

import { CodeBeautyfier } from "./features/codeBeautifier";
import * as dynamicSnippets from "./features/dynamicSnippets";
import { MethodController } from "./features/methodController";
import { MethodDetect } from "./features/methodDetect";
import * as vscAdapter from "./vscAdapter";

import LibProvider from "./libProvider";
import { IStatus, StatusBarEntry } from "./util/status";

const libProvider = new LibProvider();
const languageClientProvider = new LanguageClientProvider();

export const oscriptLinter = new LintProvider();

// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {
    const CMD_UPDATE = "language-1c-bsl.update";
    const CMD_CREATECOMMENTS = "language-1c-bsl.createComments";
    const CMD_CREATEDESCRIPTIONAPIMODULE = "language-1c-bsl.createDescriptionAPIModule";
    const CMD_CREATEMARKDOWNTEXTAPI = "language-1c-bsl.createMarkdownTextWithAPI";
    const CMD_ADDCOMMENT = "language-1c-bsl.addComment";
    const CMD_EXPANDABBREVIATION = "language-1c-bsl.expandAbbreviation";
    const CMD_QUICKOPEN = "language-1c-bsl.quickopen";
    const CMD_OPENCONT = "language-1c-bsl.openContent";

    const global = Global.create(vscAdapter);
    const quickOpen = new BslQuickOpen(global);
    const taskProvider = new TaskProvider();

    // vscode.workspace.onDidChangeConfiguration(taskProvider.onConfigurationChanged);
    taskProvider.onConfigurationChanged();

    context.subscriptions.push(
        vscode.languages.registerCompletionItemProvider(
            BSL_MODE,
            new CompletionItemProvider(global),
            ".",
            "="
        )
    );
    context.subscriptions.push(
        vscode.languages.registerDefinitionProvider(BSL_MODE, new DefinitionProvider(global))
    );
    context.subscriptions.push(
        vscode.languages.registerReferenceProvider(BSL_MODE, new ReferenceProvider(global))
    );
    context.subscriptions.push(
        vscode.languages.registerWorkspaceSymbolProvider(new WorkspaseSymbolProvider(global))
    );
    context.subscriptions.push(
        vscode.languages.registerSignatureHelpProvider(
            BSL_MODE,
{'fraction_non_alphanumeric': 0.09510002899391128, 'fraction_numerical': 0.002609452015076834, 'mean_word_length': 4.787751677852349, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2047609', 'n_tokens_mistral': 1849, 'n_tokens_neox': 1825, 'n_words': 453}