mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
October changes (#59712)
* fix #59597 * fix #59552 * fix #57997 * Open Workspace button in .code-workspace files (fixes #59305) * debt - filename => filepath to make method clear
This commit is contained in:
@@ -47,7 +47,7 @@ export class MainThreadDocumentContentProviders implements MainThreadDocumentCon
|
||||
return this._proxy.$provideTextDocumentContent(handle, uri).then(value => {
|
||||
if (typeof value === 'string') {
|
||||
const firstLineText = value.substr(0, 1 + value.search(/\r?\n/));
|
||||
const mode = this._modeService.getOrCreateModeByFilenameOrFirstLine(uri.fsPath, firstLineText);
|
||||
const mode = this._modeService.getOrCreateModeByFilepathOrFirstLine(uri.fsPath, firstLineText);
|
||||
return this._modelService.createModel(value, mode, uri);
|
||||
}
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user