Rename modeId -> languageId

This commit is contained in:
Alexandru Dima
2021-10-22 17:46:37 +02:00
parent 621f3bcc0b
commit d209aa2b02
34 changed files with 147 additions and 147 deletions

View File

@@ -15,16 +15,16 @@ import type * as vscode from 'vscode';
import { equals } from 'vs/base/common/arrays';
const _modeId2WordDefinition = new Map<string, RegExp>();
export function setWordDefinitionFor(modeId: string, wordDefinition: RegExp | undefined): void {
export function setWordDefinitionFor(languageId: string, wordDefinition: RegExp | undefined): void {
if (!wordDefinition) {
_modeId2WordDefinition.delete(modeId);
_modeId2WordDefinition.delete(languageId);
} else {
_modeId2WordDefinition.set(modeId, wordDefinition);
_modeId2WordDefinition.set(languageId, wordDefinition);
}
}
export function getWordDefinitionFor(modeId: string): RegExp | undefined {
return _modeId2WordDefinition.get(modeId);
export function getWordDefinitionFor(languageId: string): RegExp | undefined {
return _modeId2WordDefinition.get(languageId);
}
export class ExtHostDocumentData extends MirrorTextModel {