mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
Added linehighlighter
added linehighlighter to be activated
This commit is contained in:
parent
7d615c0bca
commit
16869aa5b6
@ -1,49 +1,46 @@
|
|||||||
import * as vscode from 'vscode';
|
import * as vscode from "vscode";
|
||||||
import * as pl from './pylex';
|
import * as pl from "./pylex";
|
||||||
|
import CommandNodeProvider from "./commandNodeProvider";
|
||||||
|
import Logger from "./log";
|
||||||
|
import { lineHighlighter } from "./lineHighlighter";
|
||||||
|
|
||||||
import {
|
import { accessCommands, hubCommands, navCommands, textCommands } from "./commands";
|
||||||
accessCommands,
|
|
||||||
hubCommands,
|
|
||||||
navCommands,
|
|
||||||
textCommands
|
|
||||||
} from './commands';
|
|
||||||
|
|
||||||
import CommandNodeProvider from './commandNodeProvider';
|
|
||||||
import Logger from './log';
|
|
||||||
|
|
||||||
// Output Logger
|
// Output Logger
|
||||||
const product: string = vscode.workspace.getConfiguration('mindReader').get('productType')!;
|
const product: string = vscode.workspace.getConfiguration("mindReader").get("productType")!;
|
||||||
const outputChannel = vscode.window.createOutputChannel(product + " Output");
|
const outputChannel = vscode.window.createOutputChannel(product + " Output");
|
||||||
export const logger = new Logger(outputChannel);
|
export const logger = new Logger(outputChannel);
|
||||||
|
|
||||||
let parser: pl.Parser = new pl.Parser();
|
let parser: pl.Parser = new pl.Parser();
|
||||||
|
|
||||||
export function activate(context: vscode.ExtensionContext) {
|
export function activate(context: vscode.ExtensionContext) {
|
||||||
vscode.window.showInformationMessage('Mind_Reader is loaded!');
|
vscode.window.showInformationMessage("Mind_Reader is loaded!");
|
||||||
|
|
||||||
parser.parse('Beep Boop');
|
lineHighlighter();
|
||||||
|
|
||||||
|
parser.parse("Beep Boop");
|
||||||
|
|
||||||
const allCommands = [
|
const allCommands = [
|
||||||
accessCommands,
|
accessCommands,
|
||||||
hubCommands,
|
hubCommands,
|
||||||
navCommands,
|
navCommands,
|
||||||
textCommands
|
textCommands,
|
||||||
].flat(1);
|
].flat(1);
|
||||||
|
|
||||||
// Register Commands
|
// Register Commands
|
||||||
allCommands.forEach(command => {
|
allCommands.forEach((command) => {
|
||||||
let disposable = vscode.commands.registerCommand(
|
context.subscriptions.push(
|
||||||
command.name,
|
vscode.commands.registerCommand(command.name, command.callback)
|
||||||
command.callback
|
|
||||||
);
|
);
|
||||||
context.subscriptions.push(disposable);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let accessProvider = new CommandNodeProvider([accessCommands, textCommands].flat(1));
|
let accessProvider = new CommandNodeProvider(
|
||||||
vscode.window.registerTreeDataProvider('accessActions', accessProvider);
|
[accessCommands, textCommands].flat(1)
|
||||||
|
);
|
||||||
|
vscode.window.registerTreeDataProvider("accessActions", accessProvider);
|
||||||
|
|
||||||
let hubProvider = new CommandNodeProvider(hubCommands);
|
let hubProvider = new CommandNodeProvider(hubCommands);
|
||||||
vscode.window.registerTreeDataProvider('hubActions', hubProvider);
|
vscode.window.registerTreeDataProvider("hubActions", hubProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function deactivate() {}
|
export function deactivate() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user