You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2021/12/09 16:19:24 UTC
[sling-whiteboard] 04/18: Remove unused code
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch feature/vscode-htl
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
commit 30fb7a4c9bdeca995d186d8759f3bf58077fd98e
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Dec 7 18:32:26 2021 +0100
Remove unused code
---
vscode-htl/src/extension.ts | 2 --
1 file changed, 2 deletions(-)
diff --git a/vscode-htl/src/extension.ts b/vscode-htl/src/extension.ts
index 89a3094..8361de9 100644
--- a/vscode-htl/src/extension.ts
+++ b/vscode-htl/src/extension.ts
@@ -31,9 +31,7 @@ export function activate(context: vscode.ExtensionContext) {
vscode.languages.registerCompletionItemProvider('html', {
provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken, context: vscode.CompletionContext) {
- let line = document.lineAt(position);
let lineUntilPosition = document.getText(new vscode.Range(position.with(undefined, 0), position));
- let lineAfterPosition = document.getText(new vscode.Range(position, position.with(undefined, line.text.length)));
if ( lineUntilPosition.indexOf('${') === -1 ) {
return null;
}