Fix typo in completion sample

This commit is contained in:
Simon Guilliams
2019-08-29 18:59:22 +02:00
parent 7b4d139f4b
commit 7acf79f0e7

View File

@ -52,7 +52,7 @@ export function activate(context: vscode.ExtensionContext) {
provideCompletionItems(document: vscode.TextDocument, position: vscode.Position) {
// get all text until the `position` and check if it reads `console.`
// and iff so then complete if `log`, `warn`, and `error`
// and if so then complete if `log`, `warn`, and `error`
let linePrefix = document.lineAt(position).text.substr(0, position.character);
if (!linePrefix.endsWith('console.')) {
return undefined;