<p dir="auto">Attempt to run a python program using a single line problem matcher. For example, use the tasks.json from <a href="http://stackoverflow.com/questions/29987840/how-to-execute-python-code-from-within-visual-studio-code" rel="nofollow">http://stackoverflow.com/questions/29987840/how-to-execute-python-code-from-within-visual-studio-code</a>, except make it a test command or build command so you can run with a shortcut. Run on an app.py file containing some error, like it only contains the code <code class="notranslate">1.foo</code>.</p>
<p dir="auto">The problem matcher defined in the task.json only works with single line error output, but Python delivers multiline output. I assume this is what is causing VSCode to freeze. It (at least for me) can't be closed except by killing the process.</p>
<p dir="auto">I'm running the latest VSCode version on Windows 10.</p>
<p dir="auto">whether vscode can change the mechanism that make me can get all all completionitem list include vscode itself provided in the following method provideCompletionItems in my vscode plugin? where I can know how vscode deal with this in vscode source?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="vscode.languages.registerCompletionItemProvider(&quot;javascript&quot;,
{
    resolveCompletionItem(item:vscode.CompletionItem, token: vscode.CancellationToken): vscode.CompletionItem 
    {
    var completionItem1:vscode.CompletionItem = new vscode.CompletionItem(&quot;id&quot;);
    completionItem1.detail = &quot;aaa&quot;;
    completionItem1.filterText = &quot;aa&quot;;
    completionItem1.insertText = &quot;aa&quot;;
    return completionItem1;
    }
    ,
    provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken): Promise&lt;vscode.CompletionItem[]&gt; 
    {
        return new Promise((resolve, reject) =&gt; { 
        var completionItems:vscode.CompletionItem[] = [];

        return resolve(completionItems) ;
                    });
    }
})"><pre class="notranslate"><code class="notranslate">vscode.languages.registerCompletionItemProvider("javascript",
{
    resolveCompletionItem(item:vscode.CompletionItem, token: vscode.CancellationToken): vscode.CompletionItem 
    {
    var completionItem1:vscode.CompletionItem = new vscode.CompletionItem("id");
    completionItem1.detail = "aaa";
    completionItem1.filterText = "aa";
    completionItem1.insertText = "aa";
    return completionItem1;
    }
    ,
    provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken): Promise&lt;vscode.CompletionItem[]&gt; 
    {
        return new Promise((resolve, reject) =&gt; { 
        var completionItems:vscode.CompletionItem[] = [];

        return resolve(completionItems) ;
                    });
    }
})
</code></pre></div>