save files changed in refactoring
This commit is contained in:
parent
e9fa806c9f
commit
f9c82ea274
3 changed files with 3 additions and 3 deletions
|
@ -2528,7 +2528,7 @@ namespace ts {
|
||||||
getCancellationToken: () => cancellationToken,
|
getCancellationToken: () => cancellationToken,
|
||||||
getCanonicalFileName,
|
getCanonicalFileName,
|
||||||
useCaseSensitiveFileNames: () => useCaseSensitivefileNames,
|
useCaseSensitiveFileNames: () => useCaseSensitivefileNames,
|
||||||
getNewLine: () => host.getNewLine ? host.getNewLine() : carriageReturnLineFeed,
|
getNewLine: () => getNewLineOrDefaultFromHost(host),
|
||||||
getDefaultLibFileName: (options) => host.getDefaultLibFileName(options),
|
getDefaultLibFileName: (options) => host.getDefaultLibFileName(options),
|
||||||
writeFile: (fileName, data, writeByteOrderMark) => { },
|
writeFile: (fileName, data, writeByteOrderMark) => { },
|
||||||
getCurrentDirectory: () => host.getCurrentDirectory()
|
getCurrentDirectory: () => host.getCurrentDirectory()
|
||||||
|
|
|
@ -529,7 +529,7 @@ namespace ts {
|
||||||
}
|
}
|
||||||
|
|
||||||
private realizeDiagnostics(diagnostics: Diagnostic[]): { message: string; start: number; length: number; category: string; }[]{
|
private realizeDiagnostics(diagnostics: Diagnostic[]): { message: string; start: number; length: number; category: string; }[]{
|
||||||
var newLine = getNewLineOrDefault(this.host.getNewLine);
|
var newLine = getNewLineOrDefaultFromHost(this.host);
|
||||||
return ts.realizeDiagnostics(diagnostics, newLine);
|
return ts.realizeDiagnostics(diagnostics, newLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -629,7 +629,7 @@ namespace ts {
|
||||||
/**
|
/**
|
||||||
* The default is CRLF.
|
* The default is CRLF.
|
||||||
*/
|
*/
|
||||||
export function getNewLineOrDefaultFromHost(host: LanguageServiceHost) {
|
export function getNewLineOrDefaultFromHost(host: LanguageServiceHost | LanguageServiceShimHost) {
|
||||||
return host.getNewLine ? host.getNewLine() : carriageReturnLineFeed;
|
return host.getNewLine ? host.getNewLine() : carriageReturnLineFeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue