Don't expose undocumented API

This commit is contained in:
Alex Dima 2022-04-05 21:19:21 +02:00
parent b99fd99594
commit 3b96d8d54b
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
4 changed files with 3 additions and 25 deletions

View file

@ -71,7 +71,6 @@ export interface ICommandHandler {
#include(vs/platform/theme/common/themeService): ThemeColor
#include(vs/editor/common/core/editOperation): ISingleEditOperation
#include(vs/editor/common/core/wordHelper): IWordAtPosition
#include(vs/editor/common/tokenizationTextModelPart): ITokenizationTextModelPart, BackgroundTokenizationState
#includeAll(vs/editor/common/model): IScrollEvent
#include(vs/editor/common/diff/diffComputer): IChange, ICharChange, ILineChange
#include(vs/editor/common/core/dimension): IDimension

View file

@ -1178,6 +1178,9 @@ export interface ITextModel {
*/
readonly guides: IGuidesTextModelPart;
/**
* @internal
*/
readonly tokenization: ITokenizationTextModelPart;
}

View file

@ -15,12 +15,6 @@ export enum AccessibilitySupport {
Enabled = 2
}
export enum BackgroundTokenizationState {
Uninitialized = 0,
InProgress = 1,
Completed = 2
}
export enum CompletionItemInsertTextRule {
/**
* Adjust whitespace/indentation of multiline insert texts to

18
src/vs/monaco.d.ts vendored
View file

@ -1396,23 +1396,6 @@ declare namespace monaco.editor {
readonly endColumn: number;
}
/**
* Provides tokenization related functionality of the text model.
*/
export interface ITokenizationTextModelPart {
getLanguageId(): string;
getLanguageIdAtPosition(lineNumber: number, column: number): string;
setLanguageId(languageId: string): void;
readonly backgroundTokenizationState: BackgroundTokenizationState;
readonly onBackgroundTokenizationStateChanged: IEvent<void>;
}
export enum BackgroundTokenizationState {
Uninitialized = 0,
InProgress = 1,
Completed = 2
}
/**
* Vertical Lane in the overview ruler of the editor.
*/
@ -2099,7 +2082,6 @@ declare namespace monaco.editor {
* Returns if this model is attached to an editor or not.
*/
isAttachedToEditor(): boolean;
readonly tokenization: ITokenizationTextModelPart;
}
export enum PositionAffinity {