Move token.ts to /languages/ (#141174)

This commit is contained in:
Alex Dima
2022-01-21 20:29:28 +01:00
parent d8ca757f2b
commit 2661e7a3ad
22 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ declare namespace monaco {
#include(vs/editor/common/core/position): IPosition, Position
#include(vs/editor/common/core/range): IRange, Range
#include(vs/editor/common/core/selection): ISelection, Selection, SelectionDirection
#include(vs/editor/common/core/token): Token
#include(vs/editor/common/languages/token): Token
}
declare namespace monaco.editor {
+1 -1
View File
@@ -12,7 +12,7 @@ import { URI, UriComponents } from 'vs/base/common/uri';
import { IPosition, Position } from 'vs/editor/common/core/position';
import { IRange, Range } from 'vs/editor/common/core/range';
import { Selection } from 'vs/editor/common/core/selection';
import { TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import * as model from 'vs/editor/common/model';
import { LanguageFeatureRegistry } from 'vs/editor/common/languages/languageFeatureRegistry';
import { TokenizationRegistry as TokenizationRegistryImpl } from 'vs/editor/common/languages/tokenizationRegistry';
+1 -1
View File
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Token, TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { Token, TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { ColorId, FontStyle, IState, LanguageId, MetadataConsts, StandardTokenType } from 'vs/editor/common/languages';
export const NullState: IState = new class implements IState {
@@ -8,7 +8,7 @@ import { onUnexpectedError } from 'vs/base/common/errors';
import { LineTokens } from 'vs/editor/common/model/tokens/lineTokens';
import { Position } from 'vs/editor/common/core/position';
import { IRange } from 'vs/editor/common/core/range';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { ILanguageIdCodec, IState, ITokenizationSupport, StandardTokenType, TokenizationRegistry } from 'vs/editor/common/languages';
import { nullTokenizeEncoded } from 'vs/editor/common/languages/nullMode';
import { TextModel } from 'vs/editor/common/model/textModel';
@@ -10,7 +10,7 @@ import { URI } from 'vs/base/common/uri';
import { Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { Selection } from 'vs/editor/common/core/selection';
import { Token } from 'vs/editor/common/core/token';
import { Token } from 'vs/editor/common/languages/token';
import * as standaloneEnums from 'vs/editor/common/standalone/standaloneEnums';
export class KeyMod {
@@ -6,7 +6,7 @@
import * as assert from 'assert';
import { DisposableStore } from 'vs/base/common/lifecycle';
import { Selection } from 'vs/editor/common/core/selection';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { ICommand } from 'vs/editor/common/editorCommon';
import { ColorId, IState, MetadataConsts, TokenizationRegistry } from 'vs/editor/common/languages';
import { CommentRule } from 'vs/editor/common/languages/languageConfiguration';
@@ -12,7 +12,7 @@ import { EditOperation } from 'vs/editor/common/core/editOperation';
import { Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { Selection } from 'vs/editor/common/core/selection';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { Handler } from 'vs/editor/common/editorCommon';
import { ITextModel } from 'vs/editor/common/model';
import { TextModel } from 'vs/editor/common/model/textModel';
@@ -12,7 +12,7 @@ import { Disposable } from 'vs/base/common/lifecycle';
import { ContentWidgetPositionPreference, IActiveCodeEditor, ICodeEditor, IContentWidget, IContentWidgetPosition } from 'vs/editor/browser/editorBrowser';
import { EditorAction, ServicesAccessor, registerEditorAction, registerEditorContribution } from 'vs/editor/browser/editorExtensions';
import { Position } from 'vs/editor/common/core/position';
import { Token } from 'vs/editor/common/core/token';
import { Token } from 'vs/editor/common/languages/token';
import { IEditorContribution } from 'vs/editor/common/editorCommon';
import { ITextModel } from 'vs/editor/common/model';
import { FontStyle, IState, ITokenizationSupport, StandardTokenType, TokenMetadata, TokenizationRegistry, ILanguageIdCodec } from 'vs/editor/common/languages';
@@ -13,7 +13,7 @@ import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService
import { DiffNavigator, IDiffNavigator } from 'vs/editor/browser/widget/diffNavigator';
import { ApplyUpdateResult, ConfigurationChangedEvent, EditorOptions } from 'vs/editor/common/config/editorOptions';
import { BareFontInfo, FontInfo } from 'vs/editor/common/config/fontInfo';
import { Token } from 'vs/editor/common/core/token';
import { Token } from 'vs/editor/common/languages/token';
import { EditorType } from 'vs/editor/common/editorCommon';
import { FindMatch, ITextModel, TextModelResolvedOptions } from 'vs/editor/common/model';
import * as languages from 'vs/editor/common/languages';
@@ -8,7 +8,7 @@ import { Color } from 'vs/base/common/color';
import { IDisposable } from 'vs/base/common/lifecycle';
import { Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { Token, TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { Token, TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import * as model from 'vs/editor/common/model';
import * as languages from 'vs/editor/common/languages';
import { LanguageConfiguration } from 'vs/editor/common/languages/languageConfiguration';
@@ -9,7 +9,7 @@
*/
import { IDisposable } from 'vs/base/common/lifecycle';
import { Token, TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { Token, TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import * as modes from 'vs/editor/common/languages';
import { NullState } from 'vs/editor/common/languages/nullMode';
import { TokenTheme } from 'vs/editor/common/languages/supports/tokenization';
@@ -8,7 +8,7 @@ import { LanguageService } from 'vs/editor/common/services/languageService';
import { ILanguageService } from 'vs/editor/common/services/language';
import { MonarchTokenizer } from 'vs/editor/standalone/common/monarch/monarchLexer';
import { compile } from 'vs/editor/standalone/common/monarch/monarchCompile';
import { Token } from 'vs/editor/common/core/token';
import { Token } from 'vs/editor/common/languages/token';
import { TokenizationRegistry } from 'vs/editor/common/languages';
import { IMonarchLanguage } from 'vs/editor/standalone/common/monarch/monarchTypes';
import { ModesRegistry } from 'vs/editor/common/languages/modesRegistry';
@@ -7,7 +7,7 @@ import * as assert from 'assert';
import { Color } from 'vs/base/common/color';
import { Emitter } from 'vs/base/common/event';
import { DisposableStore } from 'vs/base/common/lifecycle';
import { Token } from 'vs/editor/common/core/token';
import { Token } from 'vs/editor/common/languages/token';
import { IState, LanguageId, MetadataConsts } from 'vs/editor/common/languages';
import { ModesRegistry } from 'vs/editor/common/languages/modesRegistry';
import { TokenTheme } from 'vs/editor/common/languages/supports/tokenization';
@@ -10,7 +10,7 @@ import { EditOperation } from 'vs/editor/common/core/editOperation';
import { Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { Selection } from 'vs/editor/common/core/selection';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { ICommand, ICursorStateComputerData, IEditOperationBuilder } from 'vs/editor/common/editorCommon';
import { EndOfLinePreference, EndOfLineSequence, ITextModel } from 'vs/editor/common/model';
import { TextModel } from 'vs/editor/common/model/textModel';
@@ -8,7 +8,7 @@ import { IDisposable } from 'vs/base/common/lifecycle';
import { IViewLineTokens } from 'vs/editor/common/model/tokens/lineTokens';
import { Position } from 'vs/editor/common/core/position';
import { IRange, Range } from 'vs/editor/common/core/range';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { EndOfLinePreference } from 'vs/editor/common/model';
import { TextModel } from 'vs/editor/common/model/textModel';
import * as modes from 'vs/editor/common/languages';
@@ -5,7 +5,7 @@
import assert = require('assert');
import { DisposableStore } from 'vs/base/common/lifecycle';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { LanguageAgnosticBracketTokens } from 'vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets';
import { Length, lengthAdd, lengthsToRange, lengthZero } from 'vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length';
import { DenseKeyProvider } from 'vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet';
@@ -8,7 +8,7 @@ import { IDisposable } from 'vs/base/common/lifecycle';
import { EditOperation } from 'vs/editor/common/core/editOperation';
import { Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { TextModel } from 'vs/editor/common/model/textModel';
import * as modes from 'vs/editor/common/languages';
import { NullState } from 'vs/editor/common/languages/nullMode';
@@ -8,7 +8,7 @@ import { Disposable, DisposableStore, dispose } from 'vs/base/common/lifecycle';
import { EditOperation } from 'vs/editor/common/core/editOperation';
import { Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { TextModel } from 'vs/editor/common/model/textModel';
import { ModelRawContentChangedEvent, ModelRawFlush, ModelRawLineChanged, ModelRawLinesDeleted, ModelRawLinesInserted } from 'vs/editor/common/model/textModelEvents';
import { IState, MetadataConsts, TokenizationRegistry } from 'vs/editor/common/languages';
@@ -7,7 +7,7 @@ import * as assert from 'assert';
import { DisposableStore } from 'vs/base/common/lifecycle';
import { Position } from 'vs/editor/common/core/position';
import { Range } from 'vs/editor/common/core/range';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { IFoundBracket } from 'vs/editor/common/model/bracketPairsTextModelPart/bracketPairs';
import { TextModel } from 'vs/editor/common/model/textModel';
import { ITokenizationSupport, MetadataConsts, TokenizationRegistry, StandardTokenType } from 'vs/editor/common/languages';
@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as assert from 'assert';
import { EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { ColorId, FontStyle, IState, MetadataConsts, TokenizationRegistry } from 'vs/editor/common/languages';
import { tokenizeLineToHTML, _tokenizeToString } from 'vs/editor/common/languages/textToHtmlTokenizer';
import { LanguageIdCodec } from 'vs/editor/common/services/languagesRegistry';
@@ -12,7 +12,7 @@ import * as resources from 'vs/base/common/resources';
import * as types from 'vs/base/common/types';
import { equals as equalArray } from 'vs/base/common/arrays';
import { URI } from 'vs/base/common/uri';
import { TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/core/token';
import { TokenizationResult, EncodedTokenizationResult } from 'vs/editor/common/languages/token';
import { IState, ITokenizationSupport, LanguageId, TokenMetadata, TokenizationRegistry, StandardTokenType, ITokenizationSupportFactory } from 'vs/editor/common/languages';
import { nullTokenizeEncoded } from 'vs/editor/common/languages/nullMode';
import { generateTokensCSSForColorMap } from 'vs/editor/common/languages/supports/tokenization';