mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fix typo in completion sample
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user