Skip to content

Commit

Permalink
Chore: Remove contextHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Nov 20, 2023
1 parent 2e65564 commit 13984df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 107 deletions.
105 changes: 0 additions & 105 deletions server/src/ContextHandler.ts

This file was deleted.

3 changes: 1 addition & 2 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
} from 'vscode-languageserver/node'
import { bitBakeDocScanner } from './BitBakeDocScanner'
import { bitBakeProjectScanner, setBitBakeProjectScannerConnection } from './BitBakeProjectScanner'
import contextHandler from './ContextHandler'
import { SymbolScanner } from './SymbolScanner'
import { TextDocument } from 'vscode-languageserver-textdocument'
import { analyzer } from './tree-sitter/analyzer'
Expand Down Expand Up @@ -164,7 +163,7 @@ connection.listen()
documents.onDidChangeContent(async (event) => {
const textDocument = event.document
logger.debug('[onDidChangeContent] Set new symbol scanner')
definitionProvider.symbolScanner = new SymbolScanner(textDocument.uri, contextHandler.definitionProvider)
definitionProvider.symbolScanner = new SymbolScanner(textDocument.uri, definitionProvider)

if (textDocument.getText().length > 0) {
const diagnostics = await analyzer.analyze({ document: textDocument, uri: textDocument.uri })
Expand Down

0 comments on commit 13984df

Please sign in to comment.