We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf93fe commit e7c21f2Copy full SHA for e7c21f2
src/infrastructure.ts
@@ -137,6 +137,10 @@ export abstract class CodinGameInfrastructure implements Infrastructure {
137
}
138
139
public getInitializationOptions (): LSPAny {
140
+ // Provide all open model content to the backend so it's able to write them on the disk
141
+ // BEFORE starting the server or registering the workspace folders
142
+ // The didOpen notification already contain the file content but some LSP (like gopls)
143
+ // don't use it and needs the file to be up-to-date on the disk before the workspace folder is added
144
const files = monaco.editor
145
.getModels()
146
.filter((model) => model.uri.scheme === 'file')
0 commit comments