From 98bd0f428229ac99d4bc2c93f49240e68ab3e51b Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Tue, 31 Jan 2023 09:21:34 +1100 Subject: [PATCH] Remove unnecessay interface from LSP --- languageServer/src/ITextDocumentWrapper.ts | 7 ------- languageServer/src/TextDocumentWrapper.ts | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 languageServer/src/ITextDocumentWrapper.ts diff --git a/languageServer/src/ITextDocumentWrapper.ts b/languageServer/src/ITextDocumentWrapper.ts deleted file mode 100644 index 00f34b05cf..0000000000 --- a/languageServer/src/ITextDocumentWrapper.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Position } from 'vscode-languageserver-textdocument' -import { Document } from 'yaml' - -export interface ITextDocumentWrapper { - getYamlDocument(): Document - offsetAt(position: Position): number -} diff --git a/languageServer/src/TextDocumentWrapper.ts b/languageServer/src/TextDocumentWrapper.ts index 8e8b5b207b..5bc549ea59 100644 --- a/languageServer/src/TextDocumentWrapper.ts +++ b/languageServer/src/TextDocumentWrapper.ts @@ -17,9 +17,8 @@ import { isPair } from 'yaml' import { alphadecimalWords, variableTemplates } from './regexes' -import { ITextDocumentWrapper } from './ITextDocumentWrapper' -export class TextDocumentWrapper implements ITextDocumentWrapper { +export class TextDocumentWrapper { uri: string private textDocument: TextDocument