@@ -5,7 +5,6 @@ import * as monaco from 'monaco-editor'
5
5
import * as vscode from 'vscode'
6
6
import { Workspace } from 'vscode/services'
7
7
import { Event , Emitter , TextDocumentSaveReason } from 'vscode-languageserver-protocol'
8
- import Configuration from './Configuration'
9
8
10
9
export interface ITextModelContentSaveHandler {
11
10
saveTextContent ( document : vscode . TextDocument , reason : TextDocumentSaveReason ) : Promise < void >
@@ -16,14 +15,6 @@ export default class CodinGameMonacoWorkspace implements Workspace {
16
15
private readonly savehandlers : ITextModelContentSaveHandler [ ] = [ ]
17
16
protected readonly onDidSaveTextDocumentEmitter = new Emitter < vscode . TextDocument > ( )
18
17
19
- private configuration = new Configuration ( )
20
-
21
- getConfiguration = ( section ?: string | undefined ) : vscode . WorkspaceConfiguration => {
22
- return this . configuration . getConfiguration ( section )
23
- }
24
-
25
- onDidChangeConfiguration = this . configuration . onDidChangeConfiguration
26
-
27
18
private autoSaveModelDisposable : Disposable | undefined
28
19
29
20
public workspaceFolders : typeof vscode . workspace . workspaceFolders
@@ -125,7 +116,6 @@ export default class CodinGameMonacoWorkspace implements Workspace {
125
116
126
117
dispose ( ) : void {
127
118
this . autoSaveModelDisposable ?. dispose ( )
128
- this . configuration . dispose ( )
129
119
this . onWillSaveTextDocumentEmitter . dispose ( )
130
120
this . onDidSaveTextDocumentEmitter . dispose ( )
131
121
}
0 commit comments