Skip to content

Commit

Permalink
Merge pull request #19 from savoirfairelinux/Disable-semantic-highlig…
Browse files Browse the repository at this point in the history
…hting-on-client

Chore: commented out semantic highlighting related code
  • Loading branch information
WilsonZiweiWang authored Oct 11, 2023
2 parents c0f231f + a0bc793 commit b94417d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@

import * as path from 'path'

import { workspace, languages } from 'vscode'
import {
workspace
// language
} from 'vscode'
import { LanguageClient, TransportKind } from 'vscode-languageclient/node'

import type { ExtensionContext } from 'vscode'
import type { LanguageClientOptions, ServerOptions } from 'vscode-languageclient/node'

import { legend, BitBakeDocumentSemanticTokensProvider } from './BitBakeDocumentSemanticTokensProvider'
// import { legend, BitBakeDocumentSemanticTokensProvider } from './BitBakeDocumentSemanticTokensProvider'

let client: LanguageClient
export async function activate (context: ExtensionContext): Promise<void> {
Expand Down Expand Up @@ -51,7 +54,7 @@ export async function activate (context: ExtensionContext): Promise<void> {
// Start the client and launch the server
await client.start()

context.subscriptions.push(languages.registerDocumentSemanticTokensProvider({ language: 'bitbake', scheme: 'file' }, new BitBakeDocumentSemanticTokensProvider(), legend))
// context.subscriptions.push(languages.registerDocumentSemanticTokensProvider({ language: 'bitbake', scheme: 'file' }, new BitBakeDocumentSemanticTokensProvider(), legend))
}

export function deactivate (): Thenable<void> | undefined {
Expand Down

0 comments on commit b94417d

Please sign in to comment.