提交 e5ba9371 编写于 作者: A Alex Dima

Clarify argument type

上级 4d01741c
......@@ -1088,7 +1088,7 @@ export interface ITextBuffer {
getLineFirstNonWhitespaceColumn(lineNumber: number): number;
getLineLastNonWhitespaceColumn(lineNumber: number): number;
setEOL(newEOL: string): void;
setEOL(newEOL: '\r\n' | '\n'): void;
applyEdits(rawOperations: IIdentifiedSingleEditOperation[], recordTrimAutoWhitespace: boolean): ApplyEditsResult;
}
......
......@@ -232,7 +232,7 @@ export class LinesTextBuffer implements ITextBuffer {
//#region Editing
public setEOL(newEOL: string): void {
public setEOL(newEOL: '\r\n' | '\n'): void {
this._EOL = newEOL;
this._constructLineStarts();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册