Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Intellisense breaks when using \' inside a string with single quotes #786

Closed
@cheazy

Description

@cheazy

Environment data

VS Code version: 1.20.0
Python Extension version: 2018.1.0
Python Version: 3.6.4
OS and version: Windows 10 Pro

Actual behavior

image

Expected behavior

image

Steps to reproduce:

copy and paste this inside a python file:

test = 'this \' will break'

this will also break:

test = "this \" will break"

Intellisense stops working for everything below it unless you are on the very last line of the file.

Of course the easy fix is to just use single or double quotes depending on what you need to escape. Or use triple quotes. 😋

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions