Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cheazy opened this issue Feb 14, 2018 · 0 comments · Fixed by #805
Closed

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

cheazy opened this issue Feb 14, 2018 · 0 comments · Fixed by #805
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@cheazy
Copy link

cheazy commented Feb 14, 2018

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. 😋

@MikhailArkhipov MikhailArkhipov self-assigned this Feb 14, 2018
@MikhailArkhipov MikhailArkhipov added this to the February 2018 milestone Feb 14, 2018
@MikhailArkhipov MikhailArkhipov added bug Issue identified by VS Code Team member as probable bug area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. awaiting 2-PR labels Feb 14, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants