diff --git a/javascript/src/com/google/idea/blaze/typescript/BlazeTypeScriptConfigLibraryUpdater.java b/javascript/src/com/google/idea/blaze/typescript/BlazeTypeScriptConfigLibraryUpdater.java index 354788bd9d7..ca0f05cbb2d 100644 --- a/javascript/src/com/google/idea/blaze/typescript/BlazeTypeScriptConfigLibraryUpdater.java +++ b/javascript/src/com/google/idea/blaze/typescript/BlazeTypeScriptConfigLibraryUpdater.java @@ -16,6 +16,7 @@ package com.google.idea.blaze.typescript; import com.google.idea.blaze.base.settings.Blaze; +import com.google.idea.sdkcompat.javascript.TypeScriptConfigLibraryUpdaterAdapter; import com.intellij.lang.javascript.library.JSLibraryMappings; import com.intellij.lang.typescript.TypeScriptSettings; import com.intellij.lang.typescript.tsconfig.TypeScriptConfigLibraryUpdater; @@ -25,7 +26,7 @@ * Dummy {@link TypeScriptConfigLibraryUpdater} that does nothing, to prevent tsconfig$paths from * being created. */ -class BlazeTypeScriptConfigLibraryUpdater extends TypeScriptConfigLibraryUpdater { +class BlazeTypeScriptConfigLibraryUpdater extends TypeScriptConfigLibraryUpdaterAdapter { private final Project project; private final boolean isBlaze; private boolean initialized; diff --git a/sdkcompat/v223/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java b/sdkcompat/v223/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java new file mode 100644 index 00000000000..ef7321e3d31 --- /dev/null +++ b/sdkcompat/v223/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java @@ -0,0 +1,28 @@ +/* + * Copyright 2024 The Bazel Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.idea.sdkcompat.javascript; + +import com.intellij.lang.typescript.tsconfig.TypeScriptConfigLibraryUpdater; +import com.intellij.openapi.project.Project; +import org.jetbrains.annotations.NotNull; + +// #api242 +public class TypeScriptConfigLibraryUpdaterAdapter extends TypeScriptConfigLibraryUpdater { + public TypeScriptConfigLibraryUpdaterAdapter(@NotNull Project project) { + super(project); + } +} diff --git a/sdkcompat/v231/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java b/sdkcompat/v231/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java new file mode 100644 index 00000000000..ef7321e3d31 --- /dev/null +++ b/sdkcompat/v231/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java @@ -0,0 +1,28 @@ +/* + * Copyright 2024 The Bazel Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.idea.sdkcompat.javascript; + +import com.intellij.lang.typescript.tsconfig.TypeScriptConfigLibraryUpdater; +import com.intellij.openapi.project.Project; +import org.jetbrains.annotations.NotNull; + +// #api242 +public class TypeScriptConfigLibraryUpdaterAdapter extends TypeScriptConfigLibraryUpdater { + public TypeScriptConfigLibraryUpdaterAdapter(@NotNull Project project) { + super(project); + } +} diff --git a/sdkcompat/v232/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java b/sdkcompat/v232/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java new file mode 100644 index 00000000000..ef7321e3d31 --- /dev/null +++ b/sdkcompat/v232/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java @@ -0,0 +1,28 @@ +/* + * Copyright 2024 The Bazel Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.idea.sdkcompat.javascript; + +import com.intellij.lang.typescript.tsconfig.TypeScriptConfigLibraryUpdater; +import com.intellij.openapi.project.Project; +import org.jetbrains.annotations.NotNull; + +// #api242 +public class TypeScriptConfigLibraryUpdaterAdapter extends TypeScriptConfigLibraryUpdater { + public TypeScriptConfigLibraryUpdaterAdapter(@NotNull Project project) { + super(project); + } +} diff --git a/sdkcompat/v233/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java b/sdkcompat/v233/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java new file mode 100644 index 00000000000..ef7321e3d31 --- /dev/null +++ b/sdkcompat/v233/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java @@ -0,0 +1,28 @@ +/* + * Copyright 2024 The Bazel Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.idea.sdkcompat.javascript; + +import com.intellij.lang.typescript.tsconfig.TypeScriptConfigLibraryUpdater; +import com.intellij.openapi.project.Project; +import org.jetbrains.annotations.NotNull; + +// #api242 +public class TypeScriptConfigLibraryUpdaterAdapter extends TypeScriptConfigLibraryUpdater { + public TypeScriptConfigLibraryUpdaterAdapter(@NotNull Project project) { + super(project); + } +} diff --git a/sdkcompat/v241/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java b/sdkcompat/v241/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java new file mode 100644 index 00000000000..ef7321e3d31 --- /dev/null +++ b/sdkcompat/v241/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java @@ -0,0 +1,28 @@ +/* + * Copyright 2024 The Bazel Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.idea.sdkcompat.javascript; + +import com.intellij.lang.typescript.tsconfig.TypeScriptConfigLibraryUpdater; +import com.intellij.openapi.project.Project; +import org.jetbrains.annotations.NotNull; + +// #api242 +public class TypeScriptConfigLibraryUpdaterAdapter extends TypeScriptConfigLibraryUpdater { + public TypeScriptConfigLibraryUpdaterAdapter(@NotNull Project project) { + super(project); + } +} diff --git a/sdkcompat/v242/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java b/sdkcompat/v242/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java new file mode 100644 index 00000000000..ef7321e3d31 --- /dev/null +++ b/sdkcompat/v242/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java @@ -0,0 +1,28 @@ +/* + * Copyright 2024 The Bazel Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.idea.sdkcompat.javascript; + +import com.intellij.lang.typescript.tsconfig.TypeScriptConfigLibraryUpdater; +import com.intellij.openapi.project.Project; +import org.jetbrains.annotations.NotNull; + +// #api242 +public class TypeScriptConfigLibraryUpdaterAdapter extends TypeScriptConfigLibraryUpdater { + public TypeScriptConfigLibraryUpdaterAdapter(@NotNull Project project) { + super(project); + } +} diff --git a/sdkcompat/v243/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java b/sdkcompat/v243/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java new file mode 100644 index 00000000000..107b7736ec8 --- /dev/null +++ b/sdkcompat/v243/com/google/idea/sdkcompat/javascript/TypeScriptConfigLibraryUpdaterAdapter.java @@ -0,0 +1,31 @@ +/* + * Copyright 2024 The Bazel Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.idea.sdkcompat.javascript; + +import com.intellij.openapi.project.Project; + +// #api242 +// Temporary empty implementation as 243 made this class sealed +public class TypeScriptConfigLibraryUpdaterAdapter { + public TypeScriptConfigLibraryUpdaterAdapter(Project project) { + + } + + public void queueToUpdate() { + + }; +}