Skip to content

Commit

Permalink
Use an interface instead of a type
Browse files Browse the repository at this point in the history
  • Loading branch information
CGNonofr committed Jun 3, 2022
1 parent d1af083 commit cd05ac8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/vs/editor/common/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,11 @@ export interface DocumentSymbolProvider {
provideDocumentSymbols(model: model.ITextModel, token: CancellationToken): ProviderResult<DocumentSymbol[]>;
}

export type TextEdit = { range: IRange; text: string; eol?: model.EndOfLineSequence };
export interface TextEdit {
range: IRange;
text?: string;
eol?: model.EndOfLineSequence;
}

export interface SnippetTextEdit {
range: IRange;
Expand Down
6 changes: 3 additions & 3 deletions src/vs/monaco.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6765,11 +6765,11 @@ declare namespace monaco.languages {
provideDocumentSymbols(model: editor.ITextModel, token: CancellationToken): ProviderResult<DocumentSymbol[]>;
}

export type TextEdit = {
export interface TextEdit {
range: IRange;
text: string;
text?: string;
eol?: editor.EndOfLineSequence;
};
}

export interface SnippetTextEdit {
range: IRange;
Expand Down

0 comments on commit cd05ac8

Please sign in to comment.