Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit48ca9ec

Browse files
committed
log button triggers in console
1 parent10499a6 commit48ca9ec

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

‎lib/atom/editor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ function openFolder() {
9696
atom.open();
9797
}
9898
exports.openFolder=openFolder;
99+
varconsoleHasOpened=false;
99100
functiontoggleDevTools(){
101+
if(!consoleHasOpened){
102+
atom.executeJavaScriptInDevTools(console.clear());
103+
consoleHasOpened=true;
104+
}
100105
atom.toggleDevTools();
101106
}
102107
exports.toggleDevTools=toggleDevTools;

‎src/atom/editor.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ export function insert(text: string, options = {}) {
7878
}
7979

8080
functionsetCursorPosition(editor:AtomCore.IEditor){
81-
editor.scan(/::>/g,function(match){
81+
editor.scan(/::>/g,function(match){
8282
letstart=match.range.start;
8383
match.replace('');
84-
editor.setCursorScreenPosition(start,{autoscroll:true});
84+
editor.setCursorScreenPosition(start,{autoscroll:true});
8585
});
8686
}
8787

@@ -108,6 +108,12 @@ export function openFolder() {
108108
atom.open();
109109
}
110110

111+
letconsoleHasOpened=false;
111112
exportfunctiontoggleDevTools(){
113+
if(!consoleHasOpened){
114+
atom.executeJavaScriptInDevTools(console.clear());
115+
consoleHasOpened=true;
116+
console.log('Atom-CodeRoad: file runs on save')
117+
}
112118
atom.toggleDevTools();
113119
}

‎tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"src/atom/main.ts",
6464
"src/atom/subscriptions.ts",
6565
"src/components/_components.ts",
66-
"src/components/dialog/dialog.ts",
6766
"src/components/remove-later.ts",
6867
"src/components/theme/theme.ts",
6968
"src/reducers/alert/alert.ts",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp