Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Add ability to get document content from API#103

Merged
MikhailArkhipov merged 3 commits intomicrosoft:masterfrom
MikhailArkhipov:enc
Sep 18, 2018
Merged

Add ability to get document content from API#103
MikhailArkhipov merged 3 commits intomicrosoft:masterfrom
MikhailArkhipov:enc

Conversation

@MikhailArkhipov
Copy link
Copy Markdown

And few more useful things to extensibility interfaces


public Dictionary<object, object> Properties { get; } = new Dictionary<object, object>();

public IDocument Document => this as IDocument;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public IDocument Document => this doesn't work?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does!


completions.Should().HaveItem("append")
.Which.Should().HaveInsertText("append(self, value):\r\n\treturn super(oar, self).append(value)");
.Which.Should().HaveInsertText("append(self, value):\r\n return super(oar, self).append(value)");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we determine if it is a \t or a set of spaces? Is there a setting for it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per GetCompletionsForOverride it always uses spaces. I believe per PEP spaces are strongly preferred.

@MikhailArkhipov MikhailArkhipov merged commit 92c7953 into microsoft:master Sep 18, 2018
@MikhailArkhipov MikhailArkhipov deleted the enc branch September 18, 2018 21:00
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
Add ability to get document content from API
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants