Skip to content

Commit 1904635

Browse files
committed
fix: Do not try to save non-file models
1 parent ce1dc9f commit 1904635

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/CodinGameMonacoWorkspace.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ export default class CodinGameMonacoWorkspace implements Workspace {
9191
const disposableCollection = new DisposableCollection()
9292
const timeoutMap = new Map<string, number>()
9393
disposableCollection.push(vscode.workspace.onDidChangeTextDocument(e => {
94+
if (e.document.uri.scheme !== 'file') {
95+
// Ignore non-file models
96+
return
97+
}
9498
const uri = e.document.uri.toString()
9599
const timeout = timeoutMap.get(uri)
96100
if (timeout != null) {

0 commit comments

Comments
 (0)