Path: blob/main/src/vs/editor/standalone/browser/standaloneTreeSitterLibraryService.ts
3294 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import type { Parser, Language, Query } from '@vscode/tree-sitter-wasm';6import { IReader } from '../../../base/common/observable.js';7import { ITreeSitterLibraryService } from '../../../editor/common/services/treeSitter/treeSitterLibraryService.js';89export class StandaloneTreeSitterLibraryService implements ITreeSitterLibraryService {10readonly _serviceBrand: undefined;1112getParserClass(): Promise<typeof Parser> {13throw new Error('getParserClass is not implemented in StandaloneTreeSitterLibraryService');14}1516supportsLanguage(languageId: string, reader: IReader | undefined): boolean {17return false;18}1920getLanguage(languageId: string, reader: IReader | undefined): Language | undefined {21return undefined;22}23/**24* Return value of null indicates that there are no injection queries for this language.25* @param languageId26* @param reader27*/28getInjectionQueries(languageId: string, reader: IReader | undefined): Query | null | undefined {29return null;30}31/**32* Return value of null indicates that there are no highlights queries for this language.33* @param languageId34* @param reader35*/36getHighlightingQueries(languageId: string, reader: IReader | undefined): Query | null | undefined {37return null;38}39}404142