diff --git a/src/common/searchTokensProvider.ts b/src/common/editor.ts similarity index 93% rename from src/common/searchTokensProvider.ts rename to src/common/editor.ts index b4b4537c..7e1f9ea9 100644 --- a/src/common/searchTokensProvider.ts +++ b/src/common/editor.ts @@ -1,3 +1,15 @@ +type Range = { + startLineNumber: number; + startColumn: number; + endLineNumber: number; + endColumn: number; +}; +export type Decoration = { + id: number; + range: Range; + options: { isWholeLine: boolean; linesDecorationsClassName: string }; +}; + export const searchTokensProvider = { // Set defaultToken to invalid to see what you do not tokenize yet defaultToken: 'invalid', diff --git a/src/common/index.ts b/src/common/index.ts index bd5c2c34..7c873dc4 100644 --- a/src/common/index.ts +++ b/src/common/index.ts @@ -2,4 +2,4 @@ export * from './customError'; export * from './debounceThrottle'; export * from './debug'; export * from './pureObject'; -export * from './searchTokensProvider'; +export * from './editor'; diff --git a/src/views/editor/index.vue b/src/views/editor/index.vue index 5b790791..11548453 100644 --- a/src/views/editor/index.vue +++ b/src/views/editor/index.vue @@ -7,7 +7,7 @@