File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ class Goto {
85
85
86
86
gotoSymbol ( {
87
87
word,
88
- path : editor . getPath ( ) ,
88
+ path : editor . getPath ( ) || 'untitled-' + editor . getBuffer ( ) . getId ( ) ,
89
89
// local context
90
90
column : column + 1 ,
91
91
row : row + 1 ,
@@ -142,7 +142,7 @@ class Goto {
142
142
return new Promise ( ( resolve , reject ) => {
143
143
gotoSymbol ( {
144
144
word,
145
- path : textEditor . getPath ( ) ,
145
+ path : textEditor . getPath ( ) || 'untitled-' + textEditor . getBuffer ( ) . getId ( ) ,
146
146
// local context
147
147
column : column + 1 ,
148
148
row : row + 1 ,
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ function updateEditor (editor, options = {
79
79
const text = editor . getText ( )
80
80
const currentModule = modules . current ( )
81
81
const mod = currentModule ? currentModule : 'Main'
82
- const path = editor . getPath ( )
82
+ const path = editor . getPath ( ) || 'untitled-' + editor . getBuffer ( ) . getId ( )
83
83
return updateeditor ( {
84
84
text,
85
85
mod,
You can’t perform that action at this time.
0 commit comments