Skip to content

Commit

Permalink
chore: Support Jetbrains IDEs 243 - temporarily disable BlazeTypeScri…
Browse files Browse the repository at this point in the history
…ptConfigLibraryUpdater
  • Loading branch information
tpasternak committed Sep 24, 2024
1 parent 46277d1 commit ab89bde
Show file tree
Hide file tree
Showing 8 changed files with 201 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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() {

};
}

0 comments on commit ab89bde

Please sign in to comment.