Skip to content

Commit bece528

Browse files
committed
disable completion in one line docstring #74
1 parent a3aaf16 commit bece528

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/client/providers/completionProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export class PythonCompletionItemProvider implements vscode.CompletionItemProvid
4848
if (lineText.trim().startsWith('#')) {
4949
return Promise.resolve([]);
5050
}
51+
// If starts with a """ (possible doc string), then return
52+
if (lineText.trim().startsWith('"""')) {
53+
return Promise.resolve([]);
54+
}
5155
const type = proxy.CommandType.Completions;
5256
const columnIndex = position.character;
5357

0 commit comments

Comments
 (0)