Commit 0de0919
committed
feat(Sky): Bridge diagnostics to IMarkerService for visible editor markers
Add a new handler for `sky://diagnostics/changed` that translates Mountain's diagnostic events into the editor's `IMarkerService`. Without this bridge, diagnostic data from Cocoon's `vscode.languages.createDiagnosticCollection().set()` sits in Mountain's `DiagnosticsMap` but never renders as red squiggles in the editor or populates the Problems panel.
The handler receives `{ owner, changedURIs: [{ uri, markers }] }` and calls `Markers.changeOne(owner, URI, markers)` for each entry - matching VS Code's `MainThreadDiagnostics` behavior where each `set()` call overwrites the previous diagnostic state.
This enables language extension compile errors, lint warnings, and type errors to become visible in the editor UI.1 parent a178c92 commit 0de0919
1 file changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1932 | 1932 | | |
1933 | 1933 | | |
1934 | 1934 | | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
1935 | 1978 | | |
1936 | 1979 | | |
1937 | 1980 | | |
| |||
0 commit comments