Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion licenses/ftp-LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- GoldRaccoon is under [original author's license](https://github.com/albertodebortoli/GoldRaccoon/blob/master/LICENSE.markdown)
- ftp4j is under [LGPL](http://opensource.org/licenses/LGPL-2.1)
- All other codes (writen by me) are under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
- All other codes (written by me) are under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
2 changes: 1 addition & 1 deletion licenses/sftp-LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- GoldRaccoon is under [original author's license](https://github.com/albertodebortoli/GoldRaccoon/blob/master/LICENSE.markdown)
- ftp4j is under [LGPL](http://opensource.org/licenses/LGPL-2.1)
- All other codes (writen by me) are under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
- All other codes (written by me) are under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
16 changes: 13 additions & 3 deletions rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,19 @@ module.exports = (env, options) => {
const devPort = process.env.DEV_PORT || '';
const devProto = isDev ? (process.env.DEV_PROTO || '') : '';

// Match the oldest engine each platform supports (MIN_WEBVIEW_MAJOR in
// src/index.html, IPHONEOS_DEPLOYMENT_TARGET in Xcode) instead of plain
// ES2015, so native async/await, classes and spread are kept. `entry` mode
// rewrites `import "core-js/stable"` to only the polyfills that engine still
// needs, so plugins keep every global they could rely on.
const swcEnv = {
targets: platform === 'ios' ? 'ios_saf >= 18' : 'chrome >= 67',
mode: 'entry',
coreJs: require('core-js/package.json').version,
};
const typescriptLoader = {
loader: 'builtin:swc-loader',
options: { jsc: { parser: { syntax: 'typescript', tsx: false }, target: 'es2015' } },
options: { jsc: { parser: { syntax: 'typescript', tsx: false } }, env: swcEnv },
};
const rules = [
{
Expand Down Expand Up @@ -50,8 +60,8 @@ module.exports = (env, options) => {
parser: {
syntax: 'ecmascript',
},
target: 'es2015',
},
env: swcEnv,
},
},
],
Expand All @@ -67,8 +77,8 @@ module.exports = (env, options) => {
syntax: 'ecmascript',
jsx: false,
},
target: 'es2015',
},
env: swcEnv,
},
},
path.resolve(__dirname, 'dev/custom-loaders/html-tag-jsx-loader.js'),
Expand Down
4 changes: 2 additions & 2 deletions src/cm/colorChip.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { LSPClient } from "@codemirror/lsp-client";
import { LSPPlugin } from "@codemirror/lsp-client";
import { getAllLspPlugins } from "./lsp/clientLoader";
import type { Range } from "@codemirror/state";
import { Decoration, EditorView, WidgetType } from "@codemirror/view";
import pickColor from "dialogs/color";
Expand Down Expand Up @@ -94,7 +94,7 @@ export function isViewEditable(view: EditorView): boolean {
}

export function hasLspColorProvider(view: EditorView): boolean {
return LSPPlugin.getAll(view, "documentColor").some(
return getAllLspPlugins(view, "documentColor").some(
(lsp) =>
lsp.client.connected &&
!!lsp.client.serverCapabilities?.colorProvider,
Expand Down
Loading
Loading