mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Don't prompt for save when JSON column untitled file is closed (version 2) (#17327)
* Stops flagging untitled editors with pre-loaded content as dirty * Code changes address broken unit tests. * Completes original comment * Defines new non dirty text editor model * Revert "Completes original comment" This reverts commit 6d0e90bb9f0650eead5a0ec1ca8524dfe96c56cd. * Revert "Code changes address broken unit tests." This reverts commit 5b8cdd9f0bb43638bdd427a454ea177f6fbc024d. * Revert "Stops flagging untitled editors with pre-loaded content as dirty" This reverts commit 7a39226b7961af3aba8dc2f08113ed09eb2a1d61. * Stops marking untitled editors with JSON as dirty * Code clean up.
This commit is contained in:
@@ -63,6 +63,13 @@ export interface IUntitledTextEditorModel extends ITextEditorModel, IModeSupport
|
||||
* Resolves the untitled model.
|
||||
*/
|
||||
resolve(): Promise<void>;
|
||||
|
||||
// {{SQL CARBON EDIT}} - START
|
||||
/**
|
||||
* Sets the dirty state for this untitled model
|
||||
*/
|
||||
setDirty(dirty: boolean): void
|
||||
// {{SQL CARBON EDIT}} - END
|
||||
}
|
||||
|
||||
export class UntitledTextEditorModel extends BaseTextEditorModel implements IUntitledTextEditorModel {
|
||||
|
||||
Reference in New Issue
Block a user