Skip to content

Commit 65ba45c

Browse files
committed
clean: Remove unused code
1 parent ae67110 commit 65ba45c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/services.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import * as monaco from 'monaco-editor'
33
import {
4-
Services, MonacoToProtocolConverter, ProtocolToMonacoConverter, MonacoLanguages, TextDocumentSaveReason, MonacoCommands, TextDocument
4+
Services, MonacoToProtocolConverter, ProtocolToMonacoConverter, MonacoLanguages, TextDocumentSaveReason, MonacoCommands
55
} from '@codingame/monaco-languageclient'
66
import { RenameFile, CreateFile, WorkspaceEdit } from 'vscode-languageserver-protocol'
77
import WatchableConsoleWindow from './services/WatchableConsoleWindow'
@@ -70,11 +70,6 @@ function installServices (infrastructure: Infrastructure): CgMonacoServices {
7070
return services
7171
}
7272

73-
async function saveDocument (document: TextDocument, reason: TextDocumentSaveReason): Promise<void> {
74-
await services!.workspace.saveDocument(document, reason)
75-
}
76-
7773
export {
78-
installServices,
79-
saveDocument
74+
installServices
8075
}

0 commit comments

Comments
 (0)