Reduce usage of IRawText (send only what's needed around)

This commit is contained in:
Alex Dima
2017-03-02 15:39:22 +01:00
parent 3a86ea758d
commit bff93542a7
6 changed files with 17 additions and 56 deletions

View File

@@ -122,7 +122,7 @@ export abstract class MainThreadDocumentsShape {
$tryCreateDocument(options?: { language: string; }): TPromise<any> { throw ni(); }
$tryOpenDocument(uri: URI): TPromise<any> { throw ni(); }
$registerTextContentProvider(handle: number, scheme: string): void { throw ni(); }
$onVirtualDocumentChange(uri: URI, value: editorCommon.IRawText): void { throw ni(); }
$onVirtualDocumentChange(uri: URI, value: editorCommon.ITextSource): void { throw ni(); }
$unregisterTextContentProvider(handle: number): void { throw ni(); }
$trySaveDocument(uri: URI): TPromise<boolean> { throw ni(); }
}
@@ -282,7 +282,8 @@ export abstract class ExtHostDiagnosticsShape {
export interface IModelAddedData {
url: URI;
versionId: number;
value: editorCommon.IRawText;
lines: string[];
EOL: string;
modeId: string;
isDirty: boolean;
}