Fixes #59846: Clarify that documents get their end-of-line-sequences normalized

This commit is contained in:
Alex Dima 2018-10-17 11:39:12 +02:00
parent 06fe5c4f8b
commit 94e2018c5d

3
src/vs/vscode.d.ts vendored
View file

@ -1546,6 +1546,9 @@ declare module 'vscode' {
* [document](#TextDocument). Resources allocated should be released when
* the corresponding document has been [closed](#workspace.onDidCloseTextDocument).
*
* **Note**: The contents of the created [document](#TextDocument) might not be
* identical to the provided text due to end-of-line-sequence normalization.
*
* @param uri An uri which scheme matches the scheme this provider was [registered](#workspace.registerTextDocumentContentProvider) for.
* @param token A cancellation token.
* @return A string or a thenable that resolves to such.