Skip to content

Commit

Permalink
Chore: Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Dec 7, 2023
1 parent 40d1ca0 commit e206e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/documentLinkProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */

import vscode, { type Uri } from 'vscode'
import vscode from 'vscode'
import { type LanguageClient } from 'vscode-languageclient/node'
import { RequestMethod, type RequestResult } from './lib/src/types/requests'
import { logger } from './lib/src/utils/OutputLogger'
import path from 'path'
import { extractRecipeName } from './lib/src/utils/files'

export class DocumentLinkProvider implements vscode.DocumentLinkProvider {
export class BitbakeDocumentLinkProvider implements vscode.DocumentLinkProvider {
private readonly client: LanguageClient

constructor (client: LanguageClient) {
Expand Down
4 changes: 2 additions & 2 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { BitbakeWorkspace } from './ui/BitbakeWorkspace'
import { BitbakeRecipesView } from './ui/BitbakeRecipesView'
import { BitbakeStatusBar } from './ui/BitbakeStatusBar'
import { bitBakeProjectScanner } from './driver/BitBakeProjectScanner'
import { DocumentLinkProvider } from './documentLinkProvider'
import { BitbakeDocumentLinkProvider } from './documentLinkProvider'

let client: LanguageClient
const bitbakeDriver: BitbakeDriver = new BitbakeDriver()
Expand Down Expand Up @@ -74,7 +74,7 @@ export async function activate (context: vscode.ExtensionContext): Promise<void>
const bitbakeStatusBar = new BitbakeStatusBar(bitBakeProjectScanner)
context.subscriptions.push(bitbakeStatusBar.statusBarItem)

const provider = new DocumentLinkProvider(client)
const provider = new BitbakeDocumentLinkProvider(client)
const selector = { scheme: 'file', language: 'bitbake' }
context.subscriptions.push(vscode.languages.registerDocumentLinkProvider(selector, provider))

Expand Down

0 comments on commit e206e42

Please sign in to comment.