Add ability to open untitled document with initial content (#22021)

This commit is contained in:
Cody Hoover
2017-03-07 07:43:21 +01:00
committed by Benjamin Pasero
parent 1dd884a88a
commit 503f8f516e
9 changed files with 31 additions and 16 deletions

View File

@@ -120,7 +120,7 @@ export abstract class MainThreadDiagnosticsShape {
}
export abstract class MainThreadDocumentsShape {
$tryCreateDocument(options?: { language: string; }): TPromise<any> { throw ni(); }
$tryCreateDocument(options?: { language?: string; contents?: string; }): TPromise<any> { throw ni(); }
$tryOpenDocument(uri: URI): TPromise<any> { throw ni(); }
$registerTextContentProvider(handle: number, scheme: string): void { throw ni(); }
$onVirtualDocumentChange(uri: URI, value: ITextSource): void { throw ni(); }