@@ -5,7 +5,6 @@ import * as monaco from 'monaco-editor'
55import * as vscode from 'vscode'
66import { Workspace } from 'vscode/services'
77import { Event , Emitter , TextDocumentSaveReason } from 'vscode-languageserver-protocol'
8- import Configuration from './Configuration'
98
109export interface ITextModelContentSaveHandler {
1110 saveTextContent ( document : vscode . TextDocument , reason : TextDocumentSaveReason ) : Promise < void >
@@ -16,14 +15,6 @@ export default class CodinGameMonacoWorkspace implements Workspace {
1615 private readonly savehandlers : ITextModelContentSaveHandler [ ] = [ ]
1716 protected readonly onDidSaveTextDocumentEmitter = new Emitter < vscode . TextDocument > ( )
1817
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-
2718 private autoSaveModelDisposable : Disposable | undefined
2819
2920 public workspaceFolders : typeof vscode . workspace . workspaceFolders
@@ -125,7 +116,6 @@ export default class CodinGameMonacoWorkspace implements Workspace {
125116
126117 dispose ( ) : void {
127118 this . autoSaveModelDisposable ?. dispose ( )
128- this . configuration . dispose ( )
129119 this . onWillSaveTextDocumentEmitter . dispose ( )
130120 this . onDidSaveTextDocumentEmitter . dispose ( )
131121 }
0 commit comments