diff --git a/third_party/CHANGELOG.md b/third_party/CHANGELOG.md
index 435fc8d64..0a4d2cc8f 100644
--- a/third_party/CHANGELOG.md
+++ b/third_party/CHANGELOG.md
@@ -5,6 +5,7 @@
- Vendor change from "JetBrains" to "Google"
- Build system change from Basel to Gradle
- Removal of the old Code Coverage support, all references to com.intellij.coverage.*
+ - Removal of the Dart embedded in HTML support
- Remove the "Scope analysis to the current package" feature from the Dart problem view
- New Dart language feature: Dot Shorthands (https://youtrack.jetbrains.com/issue/IDEA-370100)
- Support new 'Null-Aware Elements’ syntax (https://youtrack.jetbrains.com/issue/IDEA-374053)
diff --git a/third_party/src/main/java/com/jetbrains/lang/dart/psi/DartPackagePathReferenceContributor.java b/third_party/src/main/java/com/jetbrains/lang/dart/psi/DartPackagePathReferenceContributor.java
deleted file mode 100644
index 360aed5ab..000000000
--- a/third_party/src/main/java/com/jetbrains/lang/dart/psi/DartPackagePathReferenceContributor.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.jetbrains.lang.dart.psi;
-
-import com.intellij.psi.PsiReferenceContributor;
-import com.intellij.psi.PsiReferenceRegistrar;
-import com.intellij.psi.filters.ElementFilter;
-import com.intellij.xml.util.XmlUtil;
-import org.jetbrains.annotations.NotNull;
-
-/**
- * @author Dennis.Ushakov
- */
-public final class DartPackagePathReferenceContributor extends PsiReferenceContributor {
- @Override
- public void registerReferenceProviders(@NotNull PsiReferenceRegistrar registrar) {
- DartPackagePathReferenceProvider provider = new DartPackagePathReferenceProvider();
- String[] htmlAttrs = new String[]{"href", "src"};
- ElementFilter htmlFilter = DartPackagePathReferenceProvider.getFilter();
- XmlUtil
- .registerXmlAttributeValueReferenceProvider(registrar, htmlAttrs, htmlFilter, false, provider, PsiReferenceRegistrar.HIGHER_PRIORITY);
- }
-}
diff --git a/third_party/src/main/java/com/jetbrains/lang/dart/psi/DartPackagePathReferenceProvider.java b/third_party/src/main/java/com/jetbrains/lang/dart/psi/DartPackagePathReferenceProvider.java
deleted file mode 100644
index 3103ef4f3..000000000
--- a/third_party/src/main/java/com/jetbrains/lang/dart/psi/DartPackagePathReferenceProvider.java
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
-package com.jetbrains.lang.dart.psi;
-
-import com.intellij.openapi.util.TextRange;
-import com.intellij.openapi.vfs.VirtualFile;
-import com.intellij.psi.*;
-import com.intellij.psi.filters.ElementFilter;
-import com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference;
-import com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReferenceSet;
-import com.intellij.psi.xml.XmlAttribute;
-import com.intellij.psi.xml.XmlAttributeValue;
-import com.intellij.psi.xml.XmlTag;
-import com.intellij.util.ProcessingContext;
-import com.intellij.xml.util.HtmlUtil;
-import com.jetbrains.lang.dart.util.DartResolveUtil;
-import com.jetbrains.lang.dart.util.DartUrlResolver;
-import com.jetbrains.lang.dart.util.PubspecYamlUtil;
-import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
-
-/**
- * Resolves path in {@code } to base Dart {@code packages} folder because relative symlinked {@code packages} folder is excluded.
- * Another example: {@code } is resolved to ./lib/click_counter.html if 'click_counter' is a Dart project name in pubspec.yaml
- */
-public final class DartPackagePathReferenceProvider extends PsiReferenceProvider {
- public static ElementFilter getFilter() {
- return new ElementFilter() {
- @Override
- public boolean isAcceptable(Object _element, PsiElement context) {
- if (!(_element instanceof PsiElement element)) return false;
- final PsiElement parentElement = element.getParent();
- final PsiFile file = element.getContainingFile().getOriginalFile();
- final VirtualFile vFile = file.getVirtualFile();
-
- return vFile != null &&
- HtmlUtil.hasHtml(file) &&
- parentElement instanceof XmlAttribute &&
- canContainDartPackageReference(((XmlAttribute)parentElement).getParent().getLocalName(),
- ((XmlAttribute)parentElement).getName()) &&
- PubspecYamlUtil.findPubspecYamlFile(element.getProject(), vFile) != null;
- }
-
- @Override
- public boolean isClassAcceptable(Class hintClass) {
- return true;
- }
- };
- }
-
- private static boolean canContainDartPackageReference(final @Nullable String tagName, final @Nullable String attrName) {
- return ("link".equalsIgnoreCase(tagName) && "href".equalsIgnoreCase(attrName)) ||
- ("script".equalsIgnoreCase(tagName) && "src".equalsIgnoreCase(attrName)) ||
- ("img".equalsIgnoreCase(tagName) && "src".equalsIgnoreCase(attrName));
- }
-
- @Override
- public PsiReference @NotNull [] getReferencesByElement(@NotNull PsiElement psiElement, @NotNull ProcessingContext context) {
- if (!(psiElement instanceof XmlAttributeValue) || !HtmlUtil.isHtmlFile(psiElement.getContainingFile())) return PsiReference.EMPTY_ARRAY;
-
- final PsiElement parent = psiElement.getParent();
- if (!(parent instanceof XmlAttribute)) return PsiReference.EMPTY_ARRAY;
-
- final XmlTag tag = ((XmlAttribute)parent).getParent();
- if (tag == null) return PsiReference.EMPTY_ARRAY;
-
- final VirtualFile file = DartResolveUtil.getRealVirtualFile(psiElement.getContainingFile());
- if (file == null) return PsiReference.EMPTY_ARRAY;
-
- if (!canContainDartPackageReference(tag.getName(), ((XmlAttribute)parent).getName())) return PsiReference.EMPTY_ARRAY;
-
- if (PubspecYamlUtil.findPubspecYamlFile(psiElement.getProject(), file) == null) return PsiReference.EMPTY_ARRAY;
-
- return getDartPackageReferences(psiElement, DartUrlResolver.getInstance(psiElement.getProject(), file));
- }
-
- private static FileReference[] getDartPackageReferences(final @NotNull PsiElement psiElement,
- final @NotNull DartUrlResolver dartResolver) {
- final TextRange textRange = ElementManipulators.getValueTextRange(psiElement);
- final String referenceText = textRange.substring(psiElement.getText());
-
- if (!referenceText.trim().startsWith(DartUrlResolver.PACKAGES_FOLDER_NAME + "/") && !referenceText.contains("/" + DartUrlResolver.PACKAGES_FOLDER_NAME + "/")) {
- return FileReference.EMPTY;
- }
-
- final FileReferenceSet referenceSet = new FileReferenceSet(referenceText, psiElement, textRange.getStartOffset(), null, true) {
- @Override
- public FileReference createFileReference(final TextRange range, final int index, final String text) {
- return new DartPackageAwareFileReference(this, range, index, text, dartResolver);
- }
- };
-
- return referenceSet.getAllReferences();
- }
-}
\ No newline at end of file
diff --git a/third_party/src/main/resources/META-INF/plugin.xml b/third_party/src/main/resources/META-INF/plugin.xml
index c3841aeb7..9f12bf062 100644
--- a/third_party/src/main/resources/META-INF/plugin.xml
+++ b/third_party/src/main/resources/META-INF/plugin.xml
@@ -71,8 +71,6 @@
-
@@ -181,7 +179,6 @@
implementationClass="com.jetbrains.lang.dart.ide.completion.DartServerStatementCompletionProcessor"/>
-
diff --git a/third_party/src/test/java/com/jetbrains/lang/dart/formatter/DartFormatterInHtmlTest.java b/third_party/src/test/java/com/jetbrains/lang/dart/formatter/DartFormatterInHtmlTest.java
deleted file mode 100644
index a0ecf56e1..000000000
--- a/third_party/src/test/java/com/jetbrains/lang/dart/formatter/DartFormatterInHtmlTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
-package com.jetbrains.lang.dart.formatter;
-
-import com.intellij.psi.formatter.FormatterTestCase;
-import com.jetbrains.lang.dart.util.DartTestUtils;
-
-public class DartFormatterInHtmlTest extends FormatterTestCase {
-
- @Override
- protected String getFileExtension() {
- return "html";
- }
-
- @Override
- protected String getTestDataPath() {
- return DartTestUtils.BASE_TEST_DATA_PATH;
- }
-
- @Override
- protected String getBasePath() {
- return "formatter/html";
- }
-
- @Override
- protected void doTest(String resultNumber) throws Exception {
- String testName = getTestName(false);
- doTest(testName + "." + getFileExtension(), testName + "_after." + getFileExtension(), resultNumber);
- }
-
- public void testDefault() throws Exception {
- doTest();
- }
-}
-
diff --git a/third_party/src/test/java/com/jetbrains/lang/dart/resolve/DartResolveTest.java b/third_party/src/test/java/com/jetbrains/lang/dart/resolve/DartResolveTest.java
index 13f515657..d2e35430a 100644
--- a/third_party/src/test/java/com/jetbrains/lang/dart/resolve/DartResolveTest.java
+++ b/third_party/src/test/java/com/jetbrains/lang/dart/resolve/DartResolveTest.java
@@ -84,43 +84,4 @@ private void doTestResolveScope(final VirtualFile contextFile,
assertFalse("Expected to be out of scope: " + file.getPath(), scope.contains(file));
}
}
-
- public void testPackageReferencesInHtml() {
- myFixture.addFileToProject("pubspec.yaml", """
- name: ProjectName
- dependencies:
- PathPackage:
- path: local_package
- """);
- myFixture.addFileToProject("lib/projectFile.dart", "");
- myFixture.addFileToProject("local_package/lib/localPackageFile.html", "");
- myFixture.addFileToProject("packages/browser/dart.js", "");
- final PsiFile psiFile = myFixture.addFileToProject("web/file.html",
- """
-
-