Remove console logs
This commit is contained in:
@@ -67,7 +67,6 @@ const setMarkers = (monacoE: typeof monaco) => {
|
|||||||
// exact same range (location) where the markers are
|
// exact same range (location) where the markers are
|
||||||
const models = monacoE.editor.getModels();
|
const models = monacoE.editor.getModels();
|
||||||
models.forEach((model) => {
|
models.forEach((model) => {
|
||||||
console.log(decorations);
|
|
||||||
decorations[model.id] = model?.deltaDecorations(
|
decorations[model.id] = model?.deltaDecorations(
|
||||||
decorations?.[model.id] || [],
|
decorations?.[model.id] || [],
|
||||||
markers
|
markers
|
||||||
@@ -100,7 +99,6 @@ const setMarkers = (monacoE: typeof monaco) => {
|
|||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
console.log("decorat", decorations);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const HooksEditor = () => {
|
const HooksEditor = () => {
|
||||||
@@ -138,7 +136,6 @@ const HooksEditor = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<EditorNavigation />
|
<EditorNavigation />
|
||||||
{console.log(snap)}
|
|
||||||
{snap.files.length > 0 && router.isReady ? (
|
{snap.files.length > 0 && router.isReady ? (
|
||||||
<Editor
|
<Editor
|
||||||
className="hooks-editor"
|
className="hooks-editor"
|
||||||
@@ -148,7 +145,6 @@ const HooksEditor = () => {
|
|||||||
path={`file:///work/c/${snap.files?.[snap.active]?.name}`}
|
path={`file:///work/c/${snap.files?.[snap.active]?.name}`}
|
||||||
defaultValue={snap.files?.[snap.active]?.content}
|
defaultValue={snap.files?.[snap.active]?.content}
|
||||||
beforeMount={(monaco) => {
|
beforeMount={(monaco) => {
|
||||||
console.log(monaco.languages.getLanguages());
|
|
||||||
if (!snap.editorCtx) {
|
if (!snap.editorCtx) {
|
||||||
snap.files.forEach((file) =>
|
snap.files.forEach((file) =>
|
||||||
monaco.editor.createModel(
|
monaco.editor.createModel(
|
||||||
|
|||||||
Reference in New Issue
Block a user