Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jul 4, 2024
1 parent c4eac31 commit ca6ec96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/editorTable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export * from './CSV/CSVeditor';
import { test } from './EXCEL/test';
import * as language from './language';
import * as treeView from './treeView';
import * as fileView from './fileView';
import * as objectSymbol from './objectSymbol';

vscode.commands.registerCommand('y3-helper.testExcel', () => {
test();
Expand All @@ -15,5 +15,5 @@ vscode.commands.registerCommand('y3-helper.testExcel', () => {
export function init() {
language.init();
treeView.init();
fileView.init();
objectSymbol.init();
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,10 @@ export class GoEditorTableDocumentSymbolProvider implements vscode.DocumentSymbo

export function init() {

vscode.languages.registerDocumentSymbolProvider({
scheme: 'file',
language: 'json',
}, new GoEditorTableDocumentSymbolProvider());

//vscode.languages.registerWorkspaceSymbolProvider(new GoEditorTableSymbolProvider());
}
9 changes: 0 additions & 9 deletions src/editorTable/treeView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as vscode from 'vscode';
import { GoEditorTableDocumentSymbolProvider, GoEditorTableSymbolProvider } from './fileView';
import { env } from '../env';
import { Table } from '../constants';
import * as editorTable from './editorTable';
Expand Down Expand Up @@ -317,12 +316,4 @@ export async function init() {
await env.mapReady();

let treeView = new TreeView();

// const goEditorTableSymbolProvider = new GoEditorTableSymbolProvider();

// vscode.languages.registerWorkspaceSymbolProvider(goEditorTableSymbolProvider);

// const goEditorTableDocumentSymbolProvider = new GoEditorTableDocumentSymbolProvider();
// let sel: vscode.DocumentSelector = { scheme: 'file', language: 'json' };
// vscode.languages.registerDocumentSymbolProvider(sel, goEditorTableDocumentSymbolProvider);
}

0 comments on commit ca6ec96

Please sign in to comment.