mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-12 22:06:34 +00:00
chore: use theia@1.47.0
This commit is contained in:
parent
8053c55ec3
commit
2b26323c8b
@ -24,29 +24,29 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@grpc/grpc-js": "^1.8.14",
|
"@grpc/grpc-js": "^1.8.14",
|
||||||
"@theia/application-package": "1.46.1",
|
"@theia/application-package": "1.47.0",
|
||||||
"@theia/core": "1.46.1",
|
"@theia/core": "1.47.0",
|
||||||
"@theia/debug": "1.46.1",
|
"@theia/debug": "1.47.0",
|
||||||
"@theia/editor": "1.46.1",
|
"@theia/editor": "1.47.0",
|
||||||
"@theia/electron": "1.46.1",
|
"@theia/electron": "1.47.0",
|
||||||
"@theia/filesystem": "1.46.1",
|
"@theia/filesystem": "1.47.0",
|
||||||
"@theia/keymaps": "1.46.1",
|
"@theia/keymaps": "1.47.0",
|
||||||
"@theia/markers": "1.46.1",
|
"@theia/markers": "1.47.0",
|
||||||
"@theia/messages": "1.46.1",
|
"@theia/messages": "1.47.0",
|
||||||
"@theia/monaco": "1.46.1",
|
"@theia/monaco": "1.47.0",
|
||||||
"@theia/monaco-editor-core": "1.72.3",
|
"@theia/monaco-editor-core": "1.83.101",
|
||||||
"@theia/navigator": "1.46.1",
|
"@theia/navigator": "1.47.0",
|
||||||
"@theia/outline-view": "1.46.1",
|
"@theia/outline-view": "1.47.0",
|
||||||
"@theia/output": "1.46.1",
|
"@theia/output": "1.47.0",
|
||||||
"@theia/plugin-ext": "1.46.1",
|
"@theia/plugin-ext": "1.47.0",
|
||||||
"@theia/plugin-ext-vscode": "1.46.1",
|
"@theia/plugin-ext-vscode": "1.47.0",
|
||||||
"@theia/preferences": "1.46.1",
|
"@theia/preferences": "1.47.0",
|
||||||
"@theia/scm": "1.46.1",
|
"@theia/scm": "1.47.0",
|
||||||
"@theia/search-in-workspace": "1.46.1",
|
"@theia/search-in-workspace": "1.47.0",
|
||||||
"@theia/terminal": "1.46.1",
|
"@theia/terminal": "1.47.0",
|
||||||
"@theia/test": "1.46.1",
|
"@theia/test": "1.47.0",
|
||||||
"@theia/typehierarchy": "1.46.1",
|
"@theia/typehierarchy": "1.47.0",
|
||||||
"@theia/workspace": "1.46.1",
|
"@theia/workspace": "1.47.0",
|
||||||
"@tippyjs/react": "^4.2.5",
|
"@tippyjs/react": "^4.2.5",
|
||||||
"@types/auth0-js": "^9.21.3",
|
"@types/auth0-js": "^9.21.3",
|
||||||
"@types/btoa": "^1.2.3",
|
"@types/btoa": "^1.2.3",
|
||||||
|
@ -779,7 +779,7 @@ export class CompilerErrors
|
|||||||
return undefined;
|
return undefined;
|
||||||
} else {
|
} else {
|
||||||
return this.editorManager
|
return this.editorManager
|
||||||
.getByUri(new URI(uriOrWidget))
|
.getByUri(new URI(uriOrWidget.toString()))
|
||||||
.then((editor) => {
|
.then((editor) => {
|
||||||
if (editor) {
|
if (editor) {
|
||||||
return this.monacoEditor(editor);
|
return this.monacoEditor(editor);
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
|
import { nls } from '@theia/core/lib/common';
|
||||||
import { inject, injectable } from '@theia/core/shared/inversify';
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
||||||
import { CommonCommands } from '@theia/core/lib/browser/common-frontend-contribution';
|
import { CommonCommands } from '@theia/core/lib/browser/common-frontend-contribution';
|
||||||
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
|
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
|
||||||
import { MonacoEditorService } from '@theia/monaco/lib/browser/monaco-editor-service';
|
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
||||||
|
import { ICodeEditorService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/codeEditorService';
|
||||||
|
import type { ICodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorBrowser';
|
||||||
|
import type { StandaloneCodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneCodeEditor';
|
||||||
import {
|
import {
|
||||||
Contribution,
|
Contribution,
|
||||||
Command,
|
Command,
|
||||||
@ -10,17 +14,11 @@ import {
|
|||||||
CommandRegistry,
|
CommandRegistry,
|
||||||
} from './contribution';
|
} from './contribution';
|
||||||
import { ArduinoMenus } from '../menu/arduino-menus';
|
import { ArduinoMenus } from '../menu/arduino-menus';
|
||||||
import { nls } from '@theia/core/lib/common';
|
|
||||||
import type { ICodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorBrowser';
|
|
||||||
import type { StandaloneCodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneCodeEditor';
|
|
||||||
|
|
||||||
// TODO: [macOS]: to remove `Start Dictation...` and `Emoji & Symbol` see this thread: https://github.com/electron/electron/issues/8283#issuecomment-269522072
|
// TODO: [macOS]: to remove `Start Dictation...` and `Emoji & Symbol` see this thread: https://github.com/electron/electron/issues/8283#issuecomment-269522072
|
||||||
// Depends on https://github.com/eclipse-theia/theia/pull/7964
|
// Depends on https://github.com/eclipse-theia/theia/pull/7964
|
||||||
@injectable()
|
@injectable()
|
||||||
export class EditContributions extends Contribution {
|
export class EditContributions extends Contribution {
|
||||||
@inject(MonacoEditorService)
|
|
||||||
private readonly codeEditorService: MonacoEditorService;
|
|
||||||
|
|
||||||
@inject(ClipboardService)
|
@inject(ClipboardService)
|
||||||
private readonly clipboardService: ClipboardService;
|
private readonly clipboardService: ClipboardService;
|
||||||
|
|
||||||
@ -208,9 +206,10 @@ ${value}
|
|||||||
protected async current(): Promise<
|
protected async current(): Promise<
|
||||||
ICodeEditor | StandaloneCodeEditor | undefined
|
ICodeEditor | StandaloneCodeEditor | undefined
|
||||||
> {
|
> {
|
||||||
|
const codeEditorService = StandaloneServices.get(ICodeEditorService);
|
||||||
return (
|
return (
|
||||||
this.codeEditorService.getFocusedCodeEditor() ||
|
codeEditorService.getFocusedCodeEditor() ||
|
||||||
this.codeEditorService.getActiveCodeEditor() ||
|
codeEditorService.getActiveCodeEditor() ||
|
||||||
undefined
|
undefined
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ export class SketchesServiceClientImpl
|
|||||||
* `true` if the `uri` is not contained in any of the opened workspaces. Otherwise, `false`.
|
* `true` if the `uri` is not contained in any of the opened workspaces. Otherwise, `false`.
|
||||||
*/
|
*/
|
||||||
isReadOnly(uri: URI | monaco.Uri | string): boolean {
|
isReadOnly(uri: URI | monaco.Uri | string): boolean {
|
||||||
const toCheck = uri instanceof URI ? uri : new URI(uri);
|
const toCheck = uri instanceof URI ? uri : new URI(uri.toString());
|
||||||
if (toCheck.scheme === 'user-storage') {
|
if (toCheck.scheme === 'user-storage') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ export class FileResourceResolver extends TheiaFileResourceResolver {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
return new WriteQueuedFileResource(uri, this.fileService, {
|
return new WriteQueuedFileResource(uri, this.fileService, {
|
||||||
isReadonly: stat?.isReadonly ?? false,
|
readOnly: stat?.isReadonly ?? false,
|
||||||
shouldOverwrite: () => this.shouldOverwrite(uri),
|
shouldOverwrite: () => this.shouldOverwrite(uri),
|
||||||
shouldOpenAsText: (error) => this.shouldOpenAsText(uri, error),
|
shouldOpenAsText: (error) => this.shouldOpenAsText(uri, error),
|
||||||
});
|
});
|
||||||
|
@ -117,7 +117,7 @@ export function maybeUpdateReadOnlyState(
|
|||||||
const model = editor.document;
|
const model = editor.document;
|
||||||
const oldReadOnly = model.readOnly;
|
const oldReadOnly = model.readOnly;
|
||||||
const resource = model['resource'];
|
const resource = model['resource'];
|
||||||
const newReadOnly = Boolean(resource.isReadonly) || isReadOnly(resource.uri);
|
const newReadOnly = Boolean(resource.readOnly) || isReadOnly(resource.uri);
|
||||||
if (oldReadOnly !== newReadOnly) {
|
if (oldReadOnly !== newReadOnly) {
|
||||||
editor.getControl().updateOptions({ readOnly: newReadOnly });
|
editor.getControl().updateOptions({ readOnly: newReadOnly });
|
||||||
if (newReadOnly) {
|
if (newReadOnly) {
|
||||||
|
@ -20,7 +20,7 @@ export class MonacoTextModelService extends TheiaMonacoTextModelService {
|
|||||||
.getContributions()
|
.getContributions()
|
||||||
.find(({ scheme }) => resource.uri.scheme === scheme);
|
.find(({ scheme }) => resource.uri.scheme === scheme);
|
||||||
const readOnly =
|
const readOnly =
|
||||||
Boolean(resource.isReadonly) ||
|
Boolean(resource.readOnly) ||
|
||||||
this.sketchesServiceClient.isReadOnly(resource.uri);
|
this.sketchesServiceClient.isReadOnly(resource.uri);
|
||||||
return factory
|
return factory
|
||||||
? factory.createModel(resource)
|
? factory.createModel(resource)
|
||||||
|
@ -5,24 +5,24 @@
|
|||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"main": "./src-gen/backend/electron-main.js",
|
"main": "./src-gen/backend/electron-main.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@theia/core": "1.46.1",
|
"@theia/core": "1.47.0",
|
||||||
"@theia/debug": "1.46.1",
|
"@theia/debug": "1.47.0",
|
||||||
"@theia/editor": "1.46.1",
|
"@theia/editor": "1.47.0",
|
||||||
"@theia/electron": "1.46.1",
|
"@theia/electron": "1.47.0",
|
||||||
"@theia/filesystem": "1.46.1",
|
"@theia/filesystem": "1.47.0",
|
||||||
"@theia/keymaps": "1.46.1",
|
"@theia/keymaps": "1.47.0",
|
||||||
"@theia/messages": "1.46.1",
|
"@theia/messages": "1.47.0",
|
||||||
"@theia/monaco": "1.46.1",
|
"@theia/monaco": "1.47.0",
|
||||||
"@theia/navigator": "1.46.1",
|
"@theia/navigator": "1.47.0",
|
||||||
"@theia/plugin-ext": "1.46.1",
|
"@theia/plugin-ext": "1.47.0",
|
||||||
"@theia/plugin-ext-vscode": "1.46.1",
|
"@theia/plugin-ext-vscode": "1.47.0",
|
||||||
"@theia/preferences": "1.46.1",
|
"@theia/preferences": "1.47.0",
|
||||||
"@theia/terminal": "1.46.1",
|
"@theia/terminal": "1.47.0",
|
||||||
"@theia/workspace": "1.46.1",
|
"@theia/workspace": "1.47.0",
|
||||||
"arduino-ide-extension": "2.3.5"
|
"arduino-ide-extension": "2.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@theia/cli": "1.46.1",
|
"@theia/cli": "1.47.0",
|
||||||
"7zip-min": "^1.4.4",
|
"7zip-min": "^1.4.4",
|
||||||
"chmodr": "^1.2.0",
|
"chmodr": "^1.2.0",
|
||||||
"compression-webpack-plugin": "^9.0.0",
|
"compression-webpack-plugin": "^9.0.0",
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
"**/ip": "^2.0.1"
|
"**/ip": "^2.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@theia/cli": "1.46.1",
|
"@theia/cli": "1.47.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
||||||
"@typescript-eslint/parser": "^5.59.0",
|
"@typescript-eslint/parser": "^5.59.0",
|
||||||
"@xhmikosr/downloader": "^13.0.1",
|
"@xhmikosr/downloader": "^13.0.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user